/* Visual do Ateliê: superfícies elevadas, luz e profundidade. */
:root {
    --ink: #203a34;
    --muted: #6c817b;
    --green: #14775d;
    --green-light: #e5f4ee;
    --paper: #f0f5f3;
    --line: #e1ebe6;
    --shadow-card: 0 2px 3px #173e3010, 0 12px 28px -12px #173e3026;
    --shadow-raised: 0 3px 0 #dce7e1, 0 6px 8px -3px #173e3012, 0 20px 36px -18px #173e3045;
}

body {
    background: radial-gradient(ellipse at 90% 0, #dbede580, transparent 45%), var(--paper);
    -webkit-font-smoothing: antialiased;
}

.sidebar {
    background: linear-gradient(165deg, #183f35, #102d28 75%);
    border-right: 1px solid #ffffff0a;
    box-shadow: 8px 0 36px #0d312512;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.brand { color: #f4fff9; }
.brand:hover { color: #fff; }
.brand small { color: #a5c4b7; }
.brand-mark {
    background: linear-gradient(145deg, #5ab58e, #1f7a5c);
    border: 1px solid #ffffff30;
    box-shadow: inset 0 2px 0 #ffffff30, 0 5px 0 #0b372b, 0 10px 20px #071d2640;
    transform: rotate(-5deg);
}
.nav-caption { color: #88aca0; }
.nav-item-link {
    color: #bbd0c7;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}
.nav-item-link:hover { background: #ffffff0a; color: #fff; transform: translateX(3px); }
.nav-item-link.active {
    background: linear-gradient(115deg, #388c6d, #286f58);
    border-color: #80c6a62b;
    color: #fff;
    box-shadow: inset 0 1px 0 #ffffff1f, 0 4px 0 #092b2270, 0 8px 18px #001b2530;
}
.nav-item-link.active:after { background: #c5edaa; box-shadow: 0 0 10px #c5edaa80; }
.sidebar-note {
    background: linear-gradient(135deg, #ffffff0c, #ffffff04);
    border-color: #ffffff12;
    color: #e1efe7;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 #ffffff06;
}
.sidebar-note p { color: #9fbcae; }
.note-dot { background: #bcda91; box-shadow: 0 0 12px #bcda9133; }
.user-box { border-color: #ffffff14; color: #e4eee8; }
.user-box small, .logout { color: #91b0a2; }
.avatar {
    background: linear-gradient(140deg, #faecd3, #e4cfac);
    color: #7a6340;
    border: 2px solid #ffffffb3;
    box-shadow: 0 3px 7px #173e301a;
}

.topbar {
    background: #ffffffb8;
    backdrop-filter: blur(18px);
    border-color: #ffffff;
    box-shadow: 0 3px 20px #284f3905;
}
.breadcrumb-label { font-size: 12px; }
.topbar-right { font-size: 11px; }
.status-dot { width: 6px; height: 6px; background: #37a77c; box-shadow: 0 0 0 4px #37a77c12; }
.page-head h1 { font-size: clamp(27px, 2.25vw, 35px); font-weight: 700; letter-spacing: -1.3px; }
.page-head p { font-size: 13px; line-height: 1.7; }
.eyebrow { color: #678b7b; }

.welcome-banner {
    position: relative;
    isolation: isolate;
    min-height: 212px;
    padding: 30px 34px;
    border: 1px solid #ffffff30;
    border-radius: 24px;
    background: linear-gradient(115deg, #174d3d, #26765a 72%, #3b8862);
    box-shadow: inset 0 1px 0 #ffffff26, 0 5px 0 #153e301f, 0 22px 36px -20px #0c4a3c80;
    margin-bottom: 30px;
}
.welcome-banner:before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -225px;
    border: 54px solid #c7ebaa0e;
    border-radius: 50%;
    z-index: -1;
}
.welcome-banner:after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: 155px;
    bottom: -230px;
    border-radius: 50%;
    box-shadow: 0 0 0 40px #d4efba07, 0 0 0 80px #d4efba05;
    z-index: -1;
}
.welcome-banner h2 { color: #f3f5df; font-size: 30px; line-height: 1.24; letter-spacing: -.5px; }
.welcome-banner .eyebrow { color: #bcd6ac; font-size: 9px; letter-spacing: 2px; }
.welcome-banner p { color: #c1dbcd; font-size: 12px; }
.banner-art { gap: 20px; transform: perspective(700px) rotateY(-16deg) rotateZ(-6deg); }
.banner-art .icon {
    box-sizing: content-box;
    width: 66px;
    height: 66px;
    padding: 18px;
    color: #eff4cf;
    background: linear-gradient(140deg, #ffffff24, #ffffff08);
    border: 1px solid #ffffff38;
    border-radius: 24px;
    box-shadow: inset 0 2px 0 #ffffff2b, 3px 7px 0 #103d3240, 8px 18px 25px #0c352e38;
    stroke-width: 1.1;
}
.banner-art .icon:last-child { transform: translateY(20px) rotate(13deg); }
.banner-art span { color: #c9deae; font-size: 30px; }

.stats-grid { gap: 20px; margin-bottom: 30px; }
.stat-card {
    position: relative;
    isolation: isolate;
    min-height: 174px;
    padding: 23px;
    background: linear-gradient(150deg, #fff 40%, #f5faf7);
    border: 1px solid #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-raised);
    transition: transform .25s, box-shadow .25s;
}
.stat-card:after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border-top: 1px solid #fff;
    background: radial-gradient(circle at 100% 0, #73ae8a10, transparent 65%);
    z-index: -1;
}
.stat-card:nth-child(3):after { background: radial-gradient(circle at 100% 0, #ecc2731a, transparent 70%); }
.stat-card:nth-child(4):after { background: radial-gradient(circle at 100% 0, #df987b16, transparent 70%); }
.stat-top { color: #657d72; font-size: 12px; gap: 8px; }
.stat-value { font-size: 39px; font-weight: 750; color: #244c3d; letter-spacing: -1.8px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.stat-foot { color: #7f9288; font-size: 11px; }
.stat-icon {
    display: inline-flex;
    flex-shrink: 0;
    padding: 11px;
    border: 1px solid #ffffffc9;
    border-radius: 14px;
    color: #277858;
    background: linear-gradient(140deg, #e6f5e8, #cce5d7);
    box-shadow: inset 0 2px 0 #ffffffb3, 0 3px 0 #b7d2c1, 0 7px 12px #376d4c17;
    transform: perspective(250px) rotateY(-12deg) rotateZ(-5deg);
}
.stat-icon.gold { color: #997123; background: linear-gradient(140deg, #fff3d6, #f5dfaa); box-shadow: inset 0 2px 0 #ffffffb3, 0 3px 0 #e5cd96, 0 7px 12px #a7823217; }
.stat-icon.rose { color: #ad6c51; background: linear-gradient(140deg, #fff0e9, #f2d7ca); box-shadow: inset 0 2px 0 #ffffffb3, 0 3px 0 #ddbdad, 0 7px 12px #a66c5017; }

.panel, .report-option, .quick-card {
    border: 1px solid #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    background: #ffffff;
}
.panel-heading { padding-top: 25px; padding-bottom: 21px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading p { font-size: 11px; line-height: 1.6; }
.panel-heading a { font-weight: 600; }
.table { font-size: 12px; }
.table th { background: #f2f7f4; color: #6c8578; font-size: 10px; border-bottom-color: #e6eee7; }
.table td { padding-top: 18px; padding-bottom: 18px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { --bs-table-bg: #f7faf8; }
.item-name { font-size: 12px; }
.item-sub { font-size: 11px; color: #819489; }
.pill { border-radius: 8px; font-size: 10px; padding: 5px 8px; box-shadow: inset 0 1px 0 #ffffff80; }
.attention-item { padding: 17px 0; }
.attention-item h3 { font-size: 12px; line-height: 1.5; }
.attention-item p, .attention-item a { font-size: 11px; }
.attention-item p { color: #7b8a7c; }
.attention-symbol { border-radius: 11px; background: linear-gradient(145deg, #fcf3df, #f3e8cc); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #ece0c1; }

.quick-grid { gap: 17px; }
.quick-card {
    padding: 22px 18px;
    min-height: 93px;
    box-shadow: var(--shadow-raised);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.quick-card strong { font-size: 12px; }
.quick-card small { font-size: 10px; color: #839689; }
.quick-card > .icon { box-sizing: content-box; flex-shrink: 0; padding: 10px; width: 22px; height: 22px; background: #edf6ee; color: #488367; border-radius: 13px; box-shadow: inset 0 1px 0 white, 0 2px 0 #d5e6d9; }
.quick-card:nth-child(3) > .icon { background: #fbf2df; color: #ad8644; box-shadow: inset 0 1px 0 white, 0 2px 0 #ecdfc2; }
.quick-card:nth-child(4) > .icon { background: #eaf0fa; color: #6983af; box-shadow: inset 0 1px 0 white, 0 2px 0 #d4e0ef; }
.quick-card .arrow { color: #7c9f8b; }
.report-option { transition: transform .25s, box-shadow .25s; }
.report-option > .icon { width: 27px; height: 27px; color: #43866a; }
.report-option h3 { font-size: 15px; }
.report-option p { font-size: 12px; line-height: 1.7; }

.btn {
    border-radius: 11px;
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn-primary {
    --bs-btn-bg: #17785c;
    --bs-btn-border-color: #17785c;
    --bs-btn-hover-bg: #12674d;
    --bs-btn-hover-border-color: #12674d;
    background-image: linear-gradient(160deg, #ffffff13, transparent);
    box-shadow: inset 0 1px 0 #ffffff26, 0 3px 0 #0d513f, 0 7px 13px #17644326;
}
.btn-light { box-shadow: inset 0 1px 0 #fff, 0 2px 0 #dfe8e2, 0 4px 8px #294e3508; border-color: #e2ebe5; }
.btn:active { transform: translateY(2px); }
.btn:focus-visible, .quick-card:focus-visible, .report-option:focus-visible { outline: 3px solid #41a883; outline-offset: 4px; }
.action-buttons .btn { border-radius: 8px; }
.form-control, .form-select { background-color: #fbfdfc; border-color: #dde8e1; border-radius: 11px; box-shadow: inset 0 2px 3px #264b3504; }
.form-control:focus, .form-select:focus { border-color: #59ab89; background-color: #fff; box-shadow: 0 0 0 4px #3ba17a12, inset 0 1px 2px #264b3504; }
.form-label { color: #52705f; }
.toolbar { background: linear-gradient(#fff, #fbfdfb); padding-top: 21px; padding-bottom: 21px; }
.metric {
    background: linear-gradient(145deg, #fff, #f0f7f2);
    border: 1px solid white;
    border-radius: 18px;
    box-shadow: var(--shadow-raised);
}
.metric strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.metric.featured {
    background: radial-gradient(ellipse at right top, #51ac7c50, transparent 65%), linear-gradient(140deg, #21634b, #124b3d);
    border-color: #427c5d;
    color: #fff;
    box-shadow: inset 0 1px 0 #ffffff30, 0 4px 0 #123e30, 0 14px 25px -10px #1f5a4650;
}
.metric.featured label { color: #c6e6cf; }
.tip { border-radius: 12px; color: #55755e; background: #edf6ed; border-color: #dcebdc; }
.section-title { color: #315d48; }
.section-title:before { content: ''; width: 4px; height: 17px; background: linear-gradient(#66ad86, #287556); border-radius: 4px; flex-shrink: 0; }
.modal-content { border-radius: 23px; border: 1px solid #ffffffb3; box-shadow: 0 30px 100px #0a302b45, inset 0 1px 0 #fff; }
.modal-header { background: linear-gradient(120deg, #f5faf5, #fff); border-radius: 23px 23px 0 0; }
.modal-footer { background: #f8fbf8; border-radius: 0 0 23px 23px; }
.modal-backdrop { background: #0d2f28; }
.history-entry summary { line-height: 1.7; }
footer { border-color: #dfe9e2; color: #82988b; font-size: 10px; }
.notice-demo { color: #7e9384; line-height: 1.7; }

.login-wrap { padding: 20px; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-story {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 95% 5%, #4b9d6550, transparent 45%), linear-gradient(145deg, #153f32, #23634b);
    color: #f1f5dc;
    border-radius: 28px;
    border: 1px solid #ffffff40;
    box-shadow: inset 0 1px 0 #ffffff20, 0 8px 0 #143c3012, 0 20px 45px #184c3020;
}
.login-story:after { content: ''; position: absolute; width: 480px; height: 480px; border: 70px solid #ffffff05; border-radius: 50%; right: -260px; bottom: -210px; z-index: -1; }
.login-story h1 { font-size: clamp(34px, 3.7vw, 55px); line-height: 1.15; }
.login-story .eyebrow, .login-story small { color: #aac79e; }
.login-story p:not(.eyebrow) { color: #bdd6c5; }
.login-tags span { border-color: #ffffff26; background: #ffffff08; color: #d9e8d6; box-shadow: inset 0 1px 0 #ffffff0c; }
.login-form { min-width: 0; padding: 32px; }
.login-form > div { width: 100%; max-width: 480px; padding: 35px; box-sizing: border-box; background: #ffffffa6; border-radius: 24px; border: 1px solid white; box-shadow: var(--shadow-card); }
.login-form h2 { font-size: 28px; line-height: 1.25; }

@media (hover: hover) and (pointer: fine) {
    .stat-card:hover { transform: perspective(1000px) translateY(-6px) rotateX(2deg); box-shadow: 0 4px 0 #dbe8df, 0 25px 40px -15px #234d3840; }
    .quick-card:hover, .report-option:hover { transform: perspective(1000px) translateY(-5px) rotateX(2deg); border-color: #b8d5c2; box-shadow: 0 3px 0 #d8e6dc, 0 20px 30px -12px #1b553738; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff26, 0 4px 0 #0d513f, 0 10px 20px #17644335; }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 19px; }
    .stat-top { font-size: 11px; }
}
@media (max-width: 1200px) {
    .stats-grid { gap: 14px; }
    .banner-art { gap: 12px; }
    .banner-art .icon { width: 45px; height: 45px; padding: 15px; border-radius: 20px; }
    .quick-card { padding: 18px; }
}
@media (max-width: 900px) {
    .sidebar.open { box-shadow: 0 0 0 100vmax #0c241c80, 10px 0 30px #0c241c33; }
    .welcome-banner h2 { font-size: 28px; }
    .login-wrap { padding: 14px; gap: 0; grid-template-columns: minmax(0, 1fr); }
    .login-story { padding: 35px; }
    .login-form { padding: 25px; }
    .login-form > div { padding: 24px; }
}
@media (max-width: 576px) {
    main#main { padding: 25px 16px; }
    .topbar { height: 69px; }
    .page-head h1 { font-size: 28px; }
    .page-head p { font-size: 12px; }
    .welcome-banner { border-radius: 20px; padding: 25px 23px; min-height: 200px; margin-bottom: 24px; }
    .welcome-banner h2 { font-size: 26px; }
    .welcome-banner p { font-size: 11px; line-height: 1.8; }
    .stats-grid { gap: 14px; margin-bottom: 25px; }
    .stat-card { min-height: 155px; padding: 16px; border-radius: 17px; }
    .stat-top { font-size: 10px; align-items: flex-start; }
    .stat-icon { padding: 8px; border-radius: 11px; }
    .stat-icon .icon { width: 17px; height: 17px; }
    .stat-value { font-size: 34px; margin-top: 8px; }
    .stat-foot { font-size: 10px; line-height: 1.5; }
    .panel { border-radius: 17px; }
    .panel-heading { padding: 21px 18px 18px; }
    .panel-heading h2 { font-size: 15px; }
    .panel-heading p { font-size: 10px; }
    .quick-grid { gap: 13px; }
    .quick-card { flex-direction: column; align-items: flex-start; gap: 13px; padding: 18px 15px; border-radius: 16px; }
    .quick-card strong { font-size: 12px; }
    .quick-card small { font-size: 10px; line-height: 1.5; }
    .quick-card > .icon { width: 22px; height: 22px; padding: 9px; }
    .table th { font-size: 9px; }
    .table td { padding-top: 15px; padding-bottom: 15px; }
    .metric { border-radius: 16px; }
    .login-wrap { padding: 12px; }
    .login-story { padding: 28px; border-radius: 22px; min-height: 340px; }
    .login-story h1 { font-size: 36px; }
    .login-story p:not(.eyebrow) { font-size: 13px; }
    .login-tags { gap: 7px; flex-wrap: wrap; }
    .login-tags span { font-size: 10px; padding: 7px 10px; }
    .login-form { padding: 24px 0 8px; }
    .login-form > div { padding: 25px 20px; width: 100%; box-sizing: border-box; }
    .login-form h2 { font-size: 26px; }
    .modal-content { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .stat-card:hover, .quick-card:hover, .report-option:hover, .btn:hover, .nav-item-link:hover { transform: none; }
}

@media print {
    body, .panel, .metric, .metric.featured, .welcome-banner, .stat-card, .quick-card { background: white !important; color: #222 !important; box-shadow: none !important; transform: none !important; }
    .welcome-banner:before, .welcome-banner:after, .stat-card:after { display: none; }
    .welcome-banner h2, .welcome-banner p, .metric.featured label, .stat-value { color: #222; }
    .metric, .metric.featured, .panel { border: 1px solid #ddd; border-radius: 8px; }
    .page-head h1 { font-size: 24px; }
    .btn { box-shadow: none; }
}

/* Stronger typography and controls across all screens. */
@media screen {
    :root {
        --ink: #18362d;
        --muted: #465e55;
        --green: #096346;
        --line: #c8d8cf;
        --bs-body-color: #18362d;
        --bs-secondary-color: #465e55;
    }
    body { color: var(--ink); font-size: 15px; font-weight: 500; }
    h1, h2, h3, .page-head h1, .panel-heading h2 { color: #143c2e; font-weight: 750; }
    .page-head p, .panel-heading p, .item-sub, .field-help,
    .stat-top, .stat-foot, .date-label, .breadcrumb-label,
    .topbar-right, .quick-card small, .report-option p,
    .notice-demo, .save-state, footer, .subheading,
    .component-head, .loading, .welcome-banner p,
    .login-story p:not(.eyebrow), .login-story small {
        color: var(--muted); font-weight: 500;
    }
    .page-head p, .panel-heading p, .field-help,
    .quick-card small, .report-option p, .stat-foot { font-size: 13px; }
    .table { font-size: 14px; }
    .table th { color: #355347; background: #e9f1ec; font-size: 11px; font-weight: 750; }
    .item-name { font-size: 14px; font-weight: 700; }
    .item-sub { font-size: 12px; }
    .eyebrow, .form-label, .purchase-inline label { color: #355347; font-weight: 700; font-size: 13px; }
    .form-control, .form-select {
        color: #18362d; background-color: #fff; border: 1px solid #91ac9e;
        font-size: 14px; font-weight: 600;
    }
    .form-control::placeholder { color: #5b6e65; opacity: 1; font-weight: 400; }
    .form-control:focus, .form-select:focus { border-color: #096346; box-shadow: 0 0 0 3px #09634628; }
    .btn, .action-buttons .btn, .purchase-inline button {
        font-weight: 700; font-size: 13px; min-height: 38px;
        border-width: 1px; padding: 9px 14px;
    }
    .btn-primary {
        --bs-btn-color: #fff; --bs-btn-bg: #096346; --bs-btn-border-color: #075239;
        --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #064b35; --bs-btn-hover-border-color: #043c2a;
        background: #096346; color: #fff; border-color: #075239;
    }
    .btn-primary:hover, .btn-primary:active { background: #064b35; color: #fff; border-color: #043c2a; }
    .btn-light, .btn-outline-primary {
        color: #164c37; background: #edf5ef; border-color: #84a593;
        box-shadow: 0 2px 0 #c4d7ca;
    }
    .btn-light:hover, .btn-outline-primary:hover { color: #0d3c29; background: #dcece2; border-color: #386b50; }
    .btn.text-danger { color: #a12727 !important; background: #fff1ef; border-color: #ca9390; }
    .btn.text-danger:hover { background: #f8dcd8; border-color: #a12727; }
    .btn:disabled { opacity: .65; box-shadow: none; }
    .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #16734f; outline-offset: 3px; }
    .sidebar .nav-item-link { color: #e3f0e8; font-weight: 650; font-size: 14px; }
    .sidebar .nav-item-link.active { color: #fff; font-weight: 750; }
    .nav-caption, .brand small, .sidebar-note p, .user-box small, .logout { color: #c4ddcf; }
    .tip { color: #36543e; border-color: #bdcfb7; font-size: 13px; }
    .cost-breakdown, .history-entry summary { font-size: 14px; }
    .purchase-inline label { min-width: 115px; }
    .purchase-inline button { border-color: #347553; background: #e0efe5; }
    .icon { stroke-width: 2; }
}

.preview-component{display:flex;gap:8px;flex-wrap:wrap}.preview-component input{width:105px}.preview-component select{width:auto;max-width:260px}

/* Product counts are available directly in the component editor. */
.component-row,.component-head{grid-template-columns:minmax(180px,1fr) 200px 120px 170px 38px}
.component-product-count .form-label{margin:0;width:100%;font-size:12px}
.component-product-count .item-sub{font-size:11px}
.component-product-count input{margin-top:4px}
@media(max-width:1100px){.component-row,.component-head{grid-template-columns:minmax(140px,1fr) 155px 95px 100px 38px}}
@media(max-width:700px){.component-head{display:none}.component-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;padding:14px 0;border-bottom:1px solid var(--line)}.component-row>.line-ref{grid-column:1/3}.component-row>.component-product-count{grid-column:1/3;grid-row:2}.component-row>.line-quantity{grid-column:1;grid-row:3}.component-row>.line-unit{grid-column:2;grid-row:3}.component-row>.remove-line{grid-column:3;grid-row:1}.component-product-count input{max-width:180px}}

.list-record-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:8px 0}.list-record-form label{flex:1;min-width:150px;font-size:13px;font-weight:700}.list-record-form input{margin-top:6px}.list-record-form [role="alert"]{width:100%}.list-edit-row td{background:#edf5ef}

/* Roomier recipe editor and clearly separated ingredient cards. */
#editor .modal-dialog{width:calc(100% - 32px);max-width:1600px;margin:16px auto}
#editor .modal-content{max-height:calc(100dvh - 32px)}
#editor .modal-body{padding:28px 32px}
#editor .component-head{display:none}
#editor .component-row{grid-template-columns:minmax(180px,1fr) minmax(140px,.4fr) minmax(180px,.5fr) 42px;gap:16px 24px;align-items:end;padding:20px;margin-bottom:18px;border:1px solid #bdcfc3;border-radius:14px;background:#f7faf8}
#editor .component-row>.line-ref{grid-column:1;grid-row:1;width:100%;min-width:0;min-height:44px;font-size:15px;font-weight:700}
#editor .component-row>.remove-line{grid-column:4;grid-row:1;min-height:42px}
#editor .component-row>.component-product-count{grid-column:1;grid-row:2}
#editor .component-row>.component-product-count:has(>.item-sub:only-child){display:none}
#editor .component-row>.component-quantity{grid-column:2;grid-row:1;min-width:0}
#editor .component-row>.component-unit{grid-column:3;grid-row:1;min-width:0}
#editor .component-quantity,#editor .component-unit{font-size:13px;font-weight:700;color:#355347;margin:0}
#editor .component-quantity input,#editor .component-unit select,#editor .component-product-count input{margin-top:8px;min-height:44px;width:100%;max-width:none}
#editor .component-product-count .form-label{font-size:13px}
#editor .component-product-count .item-sub{margin-top:8px;line-height:1.5}
@media(max-width:760px){
 #editor .modal-dialog{width:calc(100% - 16px);margin:8px auto}
 #editor .modal-content{max-height:calc(100dvh - 16px)}
 #editor .modal-body{padding:18px 14px}
 #editor .component-row{grid-template-columns:minmax(0,1fr) 42px;gap:16px;padding:16px}
 #editor .component-row>.line-ref{grid-column:1;grid-row:1;font-size:13px}
 #editor .component-row>.remove-line{grid-column:2;grid-row:1}
 #editor .component-row>.component-product-count{grid-column:1/3;grid-row:2}
 #editor .component-row>.component-quantity{grid-column:1/3;grid-row:3}
 #editor .component-row>.component-unit{grid-column:1/3;grid-row:4}
}

#editor .modal-footer{gap:10px;background:#f6faf7}#editor .modal-footer #addComponent{margin-right:12px}@media(max-width:760px){#editor .modal-footer #addComponent{flex:1 0 100%;margin-right:0}#editor .modal-footer>span{display:none}}
/* Cadastro de receitas: essenciais primeiro, ajustes sob demanda. */
#editor .recipe-compact .section-title{margin:18px 0 12px;padding-bottom:9px}
#editor .recipe-compact .editor-grid{gap:12px}
#editor .recipe-compact .field-help{display:none}
#editor .recipe-compact .recipe-option .field-help{display:block}
#editor .recipe-options{margin:20px 0}
#editor .recipe-option{border:1px solid var(--line);border-radius:9px;margin:8px 0;padding:12px 15px}
#editor .recipe-option summary{font-weight:600;font-size:13px;cursor:pointer;color:var(--ink)}
#editor .recipe-option[open]>summary{margin-bottom:14px}
#editor .recipe-compact textarea{min-height:65px}
#editor .recipe-compact .recipe-auto-yield{order:3}
