:root { --ark-blue: #075aa8; --ark-blue-dark: #073b70; --ark-ink: #17324d; --ark-muted: #64748b; --ark-line: #dce5ee; --ark-soft: #f4f8fb; --ark-white: #fff; --ark-green: #1f7a55; --ark-red: #b42318; }
* { box-sizing: border-box; }
.portal-body { margin: 0; color: var(--ark-ink); background: #f7fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.portal-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 44px; padding: 0 4vw; border-bottom: 1px solid var(--ark-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.portal-brand { display: flex; align-items: center; width: 100px; height: 34px; }
.portal-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.portal-nav { display: flex; justify-content: center; gap: 28px; }
.portal-nav a, .portal-account button { color: var(--ark-ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.portal-nav a:hover { color: var(--ark-blue); }
.portal-account { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ark-muted); }
.portal-account form { margin: 0; }
.portal-account button { padding: 8px 11px; border: 1px solid var(--ark-line); border-radius: 7px; background: white; cursor: pointer; }
.portal-language-switcher select { min-width: 58px; height: 34px; padding: 0 8px; color: var(--ark-ink); border: 1px solid var(--ark-line); border-radius: 7px; background: white; font: inherit; font-weight: 750; cursor: pointer; }
.portal-language-switcher select:focus-visible { outline: 2px solid rgba(7,90,168,.25); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.portal-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.portal-intro { max-width: 760px; margin-bottom: 32px; }
.portal-intro > span, .portal-section-heading span { color: var(--ark-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-intro h1 { margin: 8px 0 12px; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.portal-intro p { margin: 0; color: var(--ark-muted); font-size: 17px; line-height: 1.65; }
.portal-intro-row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 28px; }
.portal-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portal-product-card { display: flex; min-height: 210px; padding: 24px; flex-direction: column; justify-content: space-between; border: 1px solid var(--ark-line); border-radius: 14px; background: white; box-shadow: 0 10px 30px rgba(23,50,77,.05); }
.portal-product-card small { color: var(--ark-muted); }
.portal-product-card h2 { margin: 10px 0 6px; font-size: 22px; }
.portal-product-card p { margin: 0; color: var(--ark-muted); }
.portal-product-card button, .portal-create-form button, .portal-material-row button { padding: 11px 15px; border: 0; border-radius: 8px; color: white; background: var(--ark-blue); font-weight: 700; cursor: pointer; }
.portal-empty-state, .portal-account-card { padding: 40px; border: 1px solid var(--ark-line); border-radius: 16px; background: white; }
.portal-empty-state h2 { margin-top: 0; }
.portal-empty-state p { margin-bottom: 0; color: var(--ark-muted); }
.portal-create-form { display: flex; gap: 10px; }
.portal-create-form input { min-width: 260px; }
.portal-create-form input, .portal-create-form select { padding: 11px; border: 1px solid var(--ark-line); border-radius: 8px; background: white; }
.portal-confidential-footnote { margin: -18px 0 28px; color: var(--ark-muted); font-size: 12px; line-height: 1.55; }
.portal-folder-guidance { margin: -15px 0 24px; padding: 11px 13px; border: 1px solid #cfe0ef; border-radius: 8px; color: var(--ark-muted); background: #f4f8fc; font-size: 12px; line-height: 1.55; }
.portal-folder-guidance strong { color: var(--ark-ink); }
.portal-recipe-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, .7fr)) auto auto; align-items: end; gap: 10px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--ark-line); border-radius: 12px; background: white; }
.portal-recipe-filters label { display: grid; gap: 5px; color: var(--ark-muted); font-size: 11px; font-weight: 700; }
.portal-recipe-filters input, .portal-recipe-filters select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--ark-line); border-radius: 7px; color: var(--ark-ink); background: white; }
.portal-recipe-filters button, .portal-recipe-filters a { display: inline-flex; min-height: 39px; padding: 8px 13px; align-items: center; justify-content: center; border: 1px solid var(--ark-blue); border-radius: 7px; font-weight: 750; text-decoration: none; cursor: pointer; }
.portal-recipe-filters button { color: white; background: var(--ark-blue); }
.portal-recipe-filters a { color: var(--ark-blue); background: white; }
.portal-recipe-table-shell { overflow: hidden; border: 1px solid var(--ark-line); border-radius: 12px; background: white; box-shadow: 0 8px 24px rgba(23,50,77,.04); }
.portal-folder-toolbar { display: flex; min-height: 48px; padding: 8px 12px; align-items: center; gap: 8px; border-bottom: 1px solid var(--ark-line); background: #fbfcfd; }
.portal-folder-back { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 5px; color: var(--ark-ink); font-size: 19px; text-decoration: none; }
.portal-folder-back:hover { border-color: var(--ark-line); background: white; }
.portal-folder-breadcrumbs { display: flex; min-height: 32px; padding: 0 10px; align-items: center; gap: 8px; border: 1px solid var(--ark-line); border-radius: 5px; background: white; font-size: 12px; }
.portal-folder-breadcrumbs a { color: var(--ark-blue-dark); text-decoration: none; }
.portal-folder-breadcrumbs span { color: var(--ark-muted); }
.portal-recipe-table-scroll { overflow-x: auto; }
.portal-recipe-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-recipe-table th { padding: 11px 14px; border-bottom: 1px solid var(--ark-line); color: var(--ark-muted); background: var(--ark-soft); font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.portal-recipe-table td { padding: 13px 14px; border-bottom: 1px solid #edf2f6; vertical-align: middle; }
.portal-recipe-table tbody tr:last-child td { border-bottom: 0; }
.portal-recipe-table tbody tr:hover { background: #f8fbfe; }
.portal-recipe-table tbody tr.is-active { background: #edf6ff; box-shadow: inset 4px 0 0 var(--ark-blue); }
.portal-folder-row { color: var(--ark-muted); }
.portal-folder-row td:first-child { color: var(--ark-ink); }
.portal-explorer-name { display: flex; min-width: 210px; align-items: center; gap: 11px; color: var(--ark-ink); text-decoration: none; }
.portal-explorer-name > span:last-child { display: grid; gap: 2px; min-width: 0; }
.portal-explorer-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-explorer-name small { color: var(--ark-muted); font-size: 10px; font-weight: 500; }
.portal-explorer-name:hover strong { color: var(--ark-blue); text-decoration: underline; }
.portal-folder-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 28px; height: 20px; margin-top: 3px; border: 1px solid #d9a928; border-radius: 2px 3px 3px 3px; background: linear-gradient(#ffd86b, #f4bd36); box-shadow: inset 0 1px rgba(255,255,255,.6); }
.portal-folder-icon::before { position: absolute; left: -1px; top: -6px; width: 13px; height: 7px; border: 1px solid #d9a928; border-bottom: 0; border-radius: 3px 3px 0 0; background: #f7c84e; content: ""; }
.portal-recipe-file-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 22px; height: 27px; border: 1px solid #7ca9d2; border-radius: 2px; background: linear-gradient(135deg, #fff 0 72%, #d9ebfb 72%); box-shadow: 0 1px 2px rgba(23,50,77,.1); }
.portal-recipe-file-icon::after { position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: #7ca9d2; box-shadow: 0 -5px #7ca9d2; content: ""; }
.portal-recipe-file-icon.is-confidential { border-color: #c79b38; background: linear-gradient(135deg, #fff 0 72%, #fff0c5 72%); }
.portal-recipe-file-icon.is-confidential::after { background: #c79b38; box-shadow: 0 -5px #c79b38; }
.portal-recipe-title-link { display: grid; gap: 3px; min-width: 180px; color: var(--ark-ink); text-decoration: none; }
.portal-explorer-name.portal-recipe-title-link { display: flex; }
.portal-recipe-title-link:hover { color: var(--ark-blue); }
.portal-recipe-title-link small { color: var(--ark-blue); font-size: 10px; font-weight: 750; }
.portal-recipe-status, .portal-recipe-storage-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }
.portal-recipe-status.is-draft { color: #8a5a00; background: #fff4d6; }
.portal-recipe-status.is-saved { color: var(--ark-green); background: #e7f6ee; }
.portal-recipe-status.is-archived { color: #5d6670; background: #e9edf1; }
.portal-recipe-table tbody tr.is-archived { background: #f7f8f9; }
.portal-material-map-toggle { min-width: 46px; padding: 6px 10px; border: 1px solid #cbd5df; border-radius: 999px; color: #5d6670; background: #f3f5f7; font: inherit; font-weight: 800; cursor: pointer; }
.portal-material-map-toggle.is-enabled { border-color: #8bc6a4; color: #17663a; background: #e7f6ee; }
.portal-material-map-toggle:disabled { cursor: not-allowed; opacity: .5; }
.portal-recipe-share-count { display: inline-grid; min-width: 34px; height: 30px; padding: 0 9px; place-items: center; border: 1px solid #9dc9ed; border-radius: 999px; color: var(--ark-blue); background: #eef7ff; font: inherit; font-weight: 850; cursor: pointer; }
.portal-recipe-share-count:hover:not(:disabled) { border-color: var(--ark-blue); background: #dfefff; }
.portal-recipe-share-count:disabled { border-color: #d5dde5; color: #7b8793; background: #f2f4f6; cursor: not-allowed; opacity: .65; }
.portal-recipe-storage-badge { color: #245c3d; background: #e7f6ee; }
.portal-recipe-storage-badge.is-confidential { color: #7a4d00; background: #fff1cb; }
.portal-recipe-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.portal-recipe-row-actions button, .portal-recipe-row-actions a { padding: 7px 9px; border: 1px solid var(--ark-line); border-radius: 6px; color: var(--ark-blue-dark); background: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.portal-recipe-row-actions button:hover, .portal-recipe-row-actions a:hover { border-color: #a9cfee; background: #f0f7fd; }
.portal-recipe-row-actions .portal-recipe-delete { border-color: #e3aaa5; color: #a52218; }
.portal-recipe-row-actions .portal-recipe-delete:hover { border-color: #b42318; color: #fff; background: #b42318; }
.portal-recipe-row-actions .portal-folder-delete { border-color: #e3aaa5; color: #a52218; }
.portal-recipe-row-actions .portal-folder-delete:hover { border-color: #b42318; color: #fff; background: #b42318; }
.portal-recipe-table-shell > .compact-notice { margin: 12px; }

/* Recipe library */
.portal-main:has(.portal-recipe-primary-actions) { width: min(1440px, calc(100% - 48px)); padding-top: 34px; }
.portal-recipes-heading { max-width: 780px; margin-bottom: 14px; }
.portal-recipes-heading > span { color: var(--ark-blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-recipes-heading h1 { margin: 7px 0 8px; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.portal-recipes-heading p { margin: 0; color: var(--ark-muted); font-size: 15px; line-height: 1.55; }
.portal-main:has(.portal-recipe-primary-actions) .portal-confidential-footnote { margin: 0 0 12px; font-size: 11px; }
.portal-main:has(.portal-recipe-primary-actions) .portal-folder-guidance { margin: 0 0 14px; padding: 11px 14px; }
.portal-recipe-primary-actions { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; }
.portal-recipe-primary-actions button { display: inline-flex; min-height: 40px; padding: 9px 14px; align-items: center; gap: 7px; border: 1px solid var(--ark-blue); border-radius: 8px; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.portal-recipe-primary-actions button span { font-size: 18px; line-height: 1; }
.portal-primary-action { color: #fff; background: var(--ark-blue); }
.portal-primary-action:hover { background: var(--ark-blue-dark); }
.portal-secondary-action { color: var(--ark-blue); background: #fff; }
.portal-secondary-action:hover { background: #eff7ff; }
.portal-recipe-table-shell { border-radius: 11px; box-shadow: 0 10px 28px rgba(23,50,77,.055); }
.portal-folder-toolbar { min-height: 52px; padding: 9px 13px; }
.portal-recipe-visible-count { margin-left: auto; padding-right: 4px; color: var(--ark-muted); font-size: 12px; font-weight: 650; }
.portal-recipe-table { min-width: 1120px; font-size: 12px; }
.portal-recipe-table th { padding: 0; color: #52677b; background: #f5f8fb; font-size: 10px; letter-spacing: .055em; }
.portal-recipe-table th:not(:has(.portal-column-filter-trigger)) { padding: 12px 13px; }
.portal-recipe-table td { padding: 12px 13px; }
.portal-column-filter-trigger { display: flex; width: 100%; min-height: 41px; padding: 10px 13px; align-items: center; justify-content: space-between; gap: 8px; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; }
.portal-column-filter-trigger:hover { color: var(--ark-blue); background: #edf5fc; }
.portal-column-filter-trigger.is-filtered { color: var(--ark-blue); background: #e5f2ff; box-shadow: inset 0 -2px var(--ark-blue); }
.portal-column-filter-trigger.is-filtered span:last-child { color: var(--ark-blue); }
.portal-column-filter { width: min(290px, calc(100vw - 32px)); margin: 6px 0; padding: 13px; border: 1px solid #cbd9e6; border-radius: 10px; color: var(--ark-ink); background: #fff; box-shadow: 0 18px 50px rgba(23,50,77,.2); font-size: 12px; position-area: bottom span-right; }
.portal-column-filter::backdrop { background: transparent; }
.portal-column-filter label { display: grid; gap: 6px; color: var(--ark-muted); font-weight: 700; }
.portal-column-filter input, .portal-column-filter select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--ark-line); border-radius: 7px; color: var(--ark-ink); background: #fff; font: inherit; }
.portal-column-filter > button { margin-top: 9px; padding: 6px 0; border: 0; color: var(--ark-blue); background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.portal-filter-empty td { padding: 28px; color: var(--ark-muted); text-align: center; }
.portal-recipe-row-actions { gap: 6px; }
.portal-recipe-row-actions button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.portal-recipe-row-actions button:disabled { cursor: not-allowed; opacity: .48; }

.portal-recipe-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--ark-ink); background: #fff; box-shadow: 0 28px 80px rgba(15,38,61,.28); }
.portal-recipe-dialog::backdrop { background: rgba(15,38,61,.45); backdrop-filter: blur(2px); }
.portal-recipe-dialog .portal-create-form, .portal-folder-create-form { display: grid; gap: 15px; padding: 22px; }
.portal-move-dialog[open] { display: grid; gap: 15px; padding: 22px; }
.portal-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.portal-dialog-heading span { color: var(--ark-blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-dialog-heading h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.02em; }
.portal-dialog-heading > button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--ark-line); border-radius: 50%; color: var(--ark-muted); background: #fff; font-size: 22px; cursor: pointer; }
.portal-recipe-dialog form > label { display: grid; gap: 6px; color: var(--ark-muted); font-size: 12px; font-weight: 700; }
.portal-recipe-dialog form > label input, .portal-recipe-dialog form > label select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--ark-line); border-radius: 8px; color: var(--ark-ink); background: #fff; font: inherit; }
.portal-share-dialog[open] { display: grid; gap: 15px; padding: 22px; }
.portal-share-dialog > p { margin: -6px 0 0; color: var(--ark-muted); font-size: 13px; font-weight: 700; }
.portal-share-dialog > .portal-share-guidance { margin: -5px 0 0; padding: 10px 12px; border-radius: 8px; color: #52697f; background: #eef7ff; font-size: 11px; font-weight: 600; line-height: 1.5; }
.portal-share-dialog form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.portal-share-dialog form > button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--ark-blue); border-radius: 8px; color: white; background: var(--ark-blue); font: inherit; font-weight: 750; cursor: pointer; }
.portal-share-dialog form > button:disabled { cursor: not-allowed; opacity: .48; }
.portal-share-recipient-list { display: grid; gap: 7px; max-height: min(340px, 42vh); overflow-y: auto; }
.portal-share-recipient { display: flex; padding: 10px 11px; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--ark-line); border-radius: 8px; background: #fbfcfd; }
.portal-share-recipient > span { display: grid; min-width: 0; gap: 2px; }
.portal-share-recipient strong, .portal-share-recipient small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-share-recipient small { color: var(--ark-muted); font-size: 11px; }
.portal-share-status { width: max-content; margin-top: 3px; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.portal-share-status.is-active { color: #17663a; background: #e7f6ee; }
.portal-share-status.is-pending { color: #8a5a00; background: #fff4d6; }
.portal-share-recipient button { flex: none; padding: 7px 9px; border: 1px solid #e3aaa5; border-radius: 6px; color: #a52218; background: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.portal-share-recipient button:disabled { cursor: wait; opacity: .55; }
.portal-share-empty { margin: 0; padding: 18px; border: 1px dashed var(--ark-line); border-radius: 8px; color: var(--ark-muted); text-align: center; }
.portal-share-dialog .compact-notice { margin: 0; }
.portal-shared-recipes { margin-top: 26px; }
.portal-shared-recipes .portal-section-heading { margin-bottom: 10px; }
.portal-shared-recipes .portal-section-heading > div > span { color: var(--ark-blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-shared-recipes .portal-section-heading h2 { margin: 3px 0 0; font-size: 22px; }
.portal-shared-recipes .portal-section-heading > strong { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border-radius: 999px; color: var(--ark-blue); background: #e8f3ff; font-size: 12px; }
.portal-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.portal-dialog-actions button { min-height: 39px; padding: 8px 13px; border: 1px solid var(--ark-line); border-radius: 7px; color: var(--ark-ink); background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.portal-dialog-actions button.is-primary { border-color: var(--ark-blue); color: #fff; background: var(--ark-blue); }
.portal-move-dialog > p { margin: -6px 0 0; color: var(--ark-muted); font-size: 13px; }
.portal-folder-choice-list { display: grid; gap: 7px; max-height: min(440px, 55vh); overflow-y: auto; }
.portal-folder-choice-list > button { display: flex; width: 100%; padding: 11px 12px; align-items: center; gap: 12px; border: 1px solid var(--ark-line); border-radius: 8px; color: var(--ark-ink); background: #fff; text-align: left; cursor: pointer; }
.portal-folder-choice-list > button:hover:not(:disabled) { border-color: #9ec8eb; background: #f1f8fe; }
.portal-folder-choice-list > button:disabled { opacity: .45; cursor: default; }
.portal-folder-choice-list > button > span:last-child { display: grid; gap: 2px; }
.portal-folder-choice-list small { color: var(--ark-muted); font-size: 10px; }
.portal-folder-choice-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: var(--ark-blue); background: #e8f3ff; font-size: 17px; }

@media (max-width: 760px) {
    .portal-main:has(.portal-recipe-primary-actions) { width: min(100% - 24px, 1440px); }
    .portal-recipe-primary-actions { align-items: stretch; flex-direction: column; }
    .portal-recipe-primary-actions button { justify-content: center; }
}
.portal-recipe-list { display: grid; gap: 12px; }
.portal-recipe-list a { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px; align-items: center; border: 1px solid var(--ark-line); border-radius: 12px; color: var(--ark-ink); background: white; text-decoration: none; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.portal-recipe-list a:hover { border-color: #b8d7f2; box-shadow: 0 8px 22px rgba(7,90,168,.07); }
.portal-recipe-list a.is-active { border-color: #a9cfee; background: #eaf4ff; box-shadow: inset 4px 0 0 var(--ark-blue); }
.portal-recipe-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-recipe-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-recipe-name span { flex: none; padding: 4px 8px; border-radius: 999px; color: var(--ark-blue-dark); background: #d5eaff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.portal-recipe-name .portal-recipe-storage-badge { color: #245c3d; background: #e7f6ee; }
.portal-recipe-name .portal-recipe-storage-badge.is-confidential { color: #7a4d00; background: #fff1cb; }
.portal-recipe-list small { color: var(--ark-muted); }
.portal-secondary-link { padding: 11px 15px; border: 1px solid var(--ark-blue); border-radius: 8px; color: var(--ark-blue); font-weight: 700; text-decoration: none; }
.portal-workbench { padding: 28px; border: 1px solid var(--ark-line); border-radius: 16px; background: white; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.portal-section-heading h2 { margin: 5px 0 0; }
.portal-material-list { display: grid; gap: 10px; }
.portal-material-row { display: grid; grid-template-columns: minmax(240px, 1fr) auto 110px 90px auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--ark-line); border-radius: 10px; }
.portal-material-row > div { display: grid; gap: 3px; }
.portal-material-row small { color: var(--ark-muted); }
.portal-material-row label { display: grid; gap: 4px; color: var(--ark-muted); font-size: 12px; }
.portal-material-row input, .portal-material-row select { min-height: 38px; padding: 7px; border: 1px solid var(--ark-line); border-radius: 7px; }
.portal-material-row .portal-check { display: flex; align-items: center; align-self: center; }
.portal-material-row .portal-check input { min-height: auto; }
.portal-account-card dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-account-card dl div { padding-bottom: 14px; border-bottom: 1px solid var(--ark-line); }
.portal-account-card dt { color: var(--ark-muted); font-size: 12px; }
.portal-account-card dd { margin: 5px 0 0; font-weight: 700; }
.portal-confidential-settings { margin-top: 18px; }
.portal-confidential-settings h2 { margin-top: 0; }
.portal-confidential-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--ark-line); }
.portal-confidential-setting-row p { max-width: 720px; margin: 5px 0; color: var(--ark-muted); font-size: 13px; line-height: 1.45; }
.portal-confidential-setting-row span { color: var(--ark-blue-dark); font-size: 12px; font-weight: 700; }
.portal-confidential-setting-row button { padding: 9px 12px; border: 1px solid var(--ark-blue); border-radius: 7px; color: var(--ark-blue); background: white; font-weight: 700; cursor: pointer; }
.portal-confidential-setting-actions { display: flex; gap: 8px; }
.recipe-publication-confirmation { max-width: 760px; }
.recipe-publication-confirmation h2 { margin-top: 0; }
.recipe-publication-confirmation p { color: var(--ark-muted); line-height: 1.6; }
.recipe-publication-confirmation form { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.recipe-publication-confirmation button, .recipe-publication-confirmation form a, .recipe-publication-confirmation > a { display: inline-flex; min-height: 40px; padding: 9px 14px; align-items: center; justify-content: center; border: 1px solid var(--ark-blue); border-radius: 7px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.recipe-publication-confirmation button { color: white; background: var(--ark-blue); }
.recipe-publication-confirmation form a, .recipe-publication-confirmation > a { color: var(--ark-blue); background: white; }
.recipe-publication-confirmation .compact-notice { margin-top: 16px; padding: 11px 13px; border-radius: 7px; color: var(--ark-blue-dark); background: #e8f3ff; }
.recipe-publication-confirmation .compact-notice-error { color: var(--ark-red); background: #fff0ee; }
.portal-confidential-recovery-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 18px 0; border-top: 1px solid var(--ark-line); cursor: pointer; }
.portal-confidential-recovery-toggle input { margin-top: 3px; }
.portal-confidential-recovery-toggle span { display: grid; gap: 4px; }
.portal-confidential-recovery-toggle small { max-width: 820px; color: var(--ark-muted); font-weight: 400; line-height: 1.5; }
.portal-confidential-settings .portal-confidential-footnote { margin: 12px 0; }
.portal-request-list { display: grid; gap: 12px; }
.portal-request-list article { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--ark-line); border-radius: 12px; background: white; }
.portal-request-list article span { color: var(--ark-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portal-locked-section { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--ark-line); }
.portal-company-grid form { margin-top: 14px; }
.portal-company-grid button, .portal-decision-form button { padding: 9px 12px; border: 0; border-radius: 7px; color: white; background: var(--ark-blue); font-weight: 700; cursor: pointer; }
.portal-decision-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 12px; }
.portal-decision-form input { min-width: 0; padding: 9px; border: 1px solid var(--ark-line); border-radius: 7px; }
.portal-decision-form .portal-danger-button { background: var(--ark-red); }
.portal-messages { margin-bottom: 20px; }
.portal-message { padding: 12px 16px; border-radius: 9px; background: #e8f3ff; }
.portal-admin-heading { align-items: flex-end; }
.portal-admin-metrics { display: flex; gap: 10px; }
.portal-admin-metrics span { min-width: 92px; padding: 12px; border: 1px solid var(--ark-line); border-radius: 8px; color: var(--ark-muted); background: white; font-size: 11px; }
.portal-admin-metrics strong { display: block; color: var(--ark-ink); font-size: 23px; }
.portal-tabs { display: flex; gap: 6px; margin: 18px 0; padding: 5px; width: max-content; border: 1px solid var(--ark-line); border-radius: 10px; background: white; }
.portal-tabs a { padding: 8px 18px; border-radius: 7px; color: var(--ark-muted); font-weight: 700; text-decoration: none; }
.portal-tabs a.is-active { color: white; background: var(--ark-blue); }
.portal-admin-card { margin-bottom: 20px; }
.portal-admin-card h3 { margin-top: 24px; }
.portal-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef2f6; font-size: 11px; font-weight: 700; }
.status-active { color: var(--ark-green); background: #e7f6ee; }
.status-blocked { color: var(--ark-red); background: #fff0ee; }
.status-granted { color: var(--ark-green); background: #e7f6ee; }
.status-rejected { color: var(--ark-red); background: #fff0ee; }
.portal-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-company-grid article { padding: 18px; border: 1px solid var(--ark-line); border-radius: 10px; }
.portal-company-grid article span, .portal-company-grid article small { color: var(--ark-muted); font-size: 11px; }
.portal-company-grid h3 { margin: 7px 0; }
.portal-empty { padding: 28px; border: 1px dashed var(--ark-line); border-radius: 10px; text-align: center; }
.portal-empty h3 { margin-top: 0; }
.portal-decisions { margin-top: 36px; }
.portal-decisions ul { margin: 18px 0 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.portal-decisions li { margin: 0 0 10px; break-inside: avoid; color: var(--ark-muted); line-height: 1.45; }
.portal-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.portal-data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-data-list div { padding: 12px; border: 1px solid var(--ark-line); border-radius: 7px; }
.portal-data-list dt { color: var(--ark-muted); font-size: 11px; }
.portal-data-list dd { margin: 4px 0 0; font-weight: 700; }
.portal-form { display: grid; gap: 12px; margin-top: 18px; }
.portal-form label { display: grid; gap: 5px; color: var(--ark-muted); font-size: 12px; }
.portal-form input, .portal-form select, .portal-form textarea { width: 100%; padding: 9px; border: 1px solid var(--ark-line); border-radius: 7px; background: white; }
.portal-form label small { color: var(--ark-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.portal-invited-account-note { display: grid; gap: 5px; margin-top: 16px; padding: 13px 14px; border: 1px solid #b8d7f2; border-radius: 9px; color: #17324d; background: #eef7ff; }
.portal-invited-account-note strong { color: var(--ark-blue); }
.portal-invited-account-note span { font-size: 12px; font-weight: 700; }
.portal-invited-account-note small { color: var(--ark-muted); line-height: 1.45; }
.portal-owner-countries { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ark-line); }
.portal-owner-countries ul { padding: 0; list-style: none; }
.portal-owner-countries li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ark-line); }
.portal-owner-countries form { margin: 0; }
.portal-owner-countries button, .portal-inline-form button { padding: 7px 10px; border: 1px solid var(--ark-line); border-radius: 6px; background: white; cursor: pointer; }
.portal-inline-form { display: flex; gap: 8px; }
.portal-inline-form input { min-width: 0; padding: 8px; border: 1px solid var(--ark-line); border-radius: 6px; }
.portal-access-decision-form { display: flex; align-items: center; gap: 7px; min-width: 390px; margin: 0; }
.portal-access-decision-form input { min-width: 150px; padding: 8px; border: 1px solid var(--ark-line); border-radius: 7px; }
.portal-access-decision-form button { padding: 8px 11px; border: 0; border-radius: 7px; color: white; font-weight: 700; cursor: pointer; }
.portal-access-decision-form .portal-accept-button { background: var(--ark-green); }
.portal-access-decision-form .portal-reject-button { background: var(--ark-red); }
.quick-login-panel { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.quick-login-panel h2 { margin: 0 0 5px; font-size: 16px; }
.quick-login-actions { display: grid; gap: 8px; margin-top: 12px; }
.quick-login-actions form { margin: 0; }
.auth-card-wide { width: min(560px, 100%); }
.auth-brand { display: flex; justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 30px; text-decoration: none; }
.auth-brand img { display: block; width: auto; height: 118px; max-width: 100%; object-fit: contain; }
.login-card .button-primary { color: white; background: var(--ark-blue); box-shadow: 0 4px 12px rgba(7, 90, 168, .22); }
.login-card .button-primary:hover { background: var(--ark-blue-dark); }
.auth-registration-form select { width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #cecede; border-radius: 8px; color: var(--text); background: white; font: inherit; }
.field-help { color: var(--ark-muted); font-size: 12px; line-height: 1.45; }
.field-help ul { margin: 2px 0 5px; padding-left: 20px; }
.password-requirements { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--ark-line); border-radius: 9px; color: var(--ark-muted); background: var(--ark-soft); font-size: 12px; line-height: 1.45; }
.password-requirements strong { display: block; margin-bottom: 6px; color: var(--ark-ink); }
.password-requirements ul { margin: 0; padding-left: 19px; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.auth-links a { color: var(--ark-blue); font-weight: 700; text-decoration: none; }
.auth-links a.button-primary { color: white; }
.auth-links a:hover { text-decoration: underline; }
.local-auth-preview { margin-top: 20px; padding: 16px; border: 1px solid #c9d9f0; border-radius: 10px; background: #f4f8fd; }
.local-auth-preview p { margin: 5px 0 12px; color: var(--ark-muted); }
.notice-success { color: var(--ark-green); background: #e8f7ef; }
.status-pending { color: #8a5a00; background: #fff4d6; }
@media (max-width: 850px) { .portal-header { grid-template-columns: 1fr auto; padding: 12px 20px; } .portal-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 18px; padding-top: 12px; overflow-x: auto; } .portal-account > span { display: none; } .portal-product-grid, .portal-company-grid, .portal-detail-grid { grid-template-columns: 1fr; } .portal-intro-row { align-items: flex-start; flex-direction: column; } .portal-material-row { grid-template-columns: 1fr 1fr; } .portal-material-row > div { grid-column: 1 / -1; } .portal-recipe-list a { grid-template-columns: 1fr; gap: 6px; } .portal-recipe-filters { grid-template-columns: 1fr 1fr; } .portal-recipe-filters label:first-child { grid-column: 1 / -1; } .portal-decisions ul { columns: 1; } }
