@font-face{font-family:StudioCrimson;src:url('/assets/portal-figma/crimson-text-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#241c13;--muted:#756b5f;--line:#e5d8c1;--canvas:#f8f8f8;--gold:#c6a04b;--gold-dark:#8b632a;--gold-light:#f3e9d4;--sidebar:#180e01;--green:#427546;--radius:12px;--surface:#fff;--border:#e5d8c1;--accent:#c6a04b;font-family:StudioInter,Inter,Arial,sans-serif;background:#f8f8f8;color:#241c13}
body{font-family:StudioInter,Inter,Arial,sans-serif;font-size:14px;line-height:20px;background:#f8f8f8}
.portal-design{display:grid;grid-template-columns:202px minmax(0,1fr);min-height:100svh;background:var(--canvas);color:var(--ink);font-size:14px;line-height:20px}
.portal-design h1,.portal-design h2,.portal-design h3{font-family:inherit;letter-spacing:0;color:var(--ink)}
.portal-design h1{font-size:28px;line-height:40px;font-weight:700}
.portal-design h2{font-size:20px;line-height:28px;font-weight:600}
.portal-design h3{font-size:14px;line-height:20px;font-weight:600}
.portal-design .sidebar{width:202px;padding:0;border:0;inset:0 auto 0 0;background:#180e01;color:#fafafa;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;z-index:35;box-shadow:none}
.sidebar-brand{height:90px;min-height:90px;position:relative}
.portal-design .brand{display:block;width:142px;height:51px;margin:8px 0 0 25px;object-fit:contain}
.portal-design .nav{padding:0 0 0 15px;gap:10px;overflow:visible;flex-shrink:0}
.portal-design .nav button{isolation:isolate;position:relative;min-height:45px;flex-shrink:0;width:187px;margin:0;padding:0 10px;border:0;border-radius:0;display:flex;align-items:center;background:none;color:#fafafa;font-size:17px;line-height:19px;font-weight:600;text-align:left;box-shadow:none}
.portal-design .nav button>span{position:relative;z-index:1;display:block;white-space:normal;max-width:169px;font-size:inherit}
.portal-design .nav button:hover{color:#d5b66f;background:none}
.portal-design .nav button.active{background:none;color:#180e01;font-weight:600}
.portal-design .nav button.active:hover{color:#180e01}
.nav-active-art{position:absolute;z-index:0;left:0;top:-31px;width:187px;height:110.388px;max-width:none;pointer-events:none}
.sidebar-lower{margin-top:auto;padding-top:28px;padding-bottom:12px;flex-shrink:0}
.sidebar-divider{display:block;margin:0 0 6px 12px;width:143px;height:1px;opacity:1}
.portal-design .nav-secondary{margin:0 0 25px}
.portal-design .sidebar-footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:0 24px}
.sidebar-service,.sidebar-logout{display:flex;align-items:center;gap:10px;background:none;border:0;font-size:17px;line-height:20px;font-weight:600;padding:10px;color:#fafafa;min-height:44px}
.sidebar-service.selected{color:#d5b66f}
.sidebar-logout{border:1px solid #d5b66f;color:#d5b66f;border-radius:6px;white-space:nowrap}
.sidebar-service:hover,.sidebar-logout:hover{background:#ffffff0d}
.local-workspace-label{font-size:10px;line-height:14px;color:#bba578;padding:0 10px}
.portal-design .main-shell{grid-column:2;min-width:0;background:var(--canvas)}
.portal-design .topbar{position:relative;height:55px;min-height:55px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(213,182,111,.44);border:0;box-shadow:none;z-index:10}
.portal-design .workspace-identity{display:flex;align-items:center;flex-direction:row;gap:8px;min-width:0;flex-shrink:0;color:#180e01}
.portal-design .workspace-identity>span{font-size:15px;line-height:18px;letter-spacing:0;text-transform:none;color:#180e01}
.portal-design .customer-id{font-family:inherit;color:#180e01;font-size:12px;line-height:18px;letter-spacing:0;font-weight:400;background:#fafafa;border:1px solid #180e01;border-radius:5px;padding:5px 8px;white-space:nowrap}
.portal-design .top-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;flex:1}
.portal-design .top-actions>[data-background-pending]{position:fixed;right:20px;bottom:20px;z-index:40;background:#fff;border:1px solid var(--line);box-shadow:0 4px 16px #180e011a;font-size:12px;line-height:18px;padding:10px 14px;border-radius:6px}
.portal-search{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(430px,43%);height:32px;min-width:160px;padding:4px 7px 4px 10px;border:0;border-radius:0;background:#fafafa;color:#0006;text-align:left;font-size:13px;line-height:18px}
.portal-design .user-profile{display:flex;align-items:center;gap:7px;min-width:40px;padding:0;background:none;border:0;text-align:right;max-width:215px}
.profile-caption{display:flex;min-width:0;flex-direction:column;align-items:flex-end}
.portal-design .user-profile strong{font-size:13px;line-height:16px;font-weight:400;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#180e01cc}
.portal-design .user-profile small{font-size:10px;line-height:13px;color:#180e01cc;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-design .avatar{position:relative;width:40.1222px;height:40px;flex-shrink:0;border-radius:0;background:none;color:#180e01;font-weight:600;font-size:15px;line-height:20px;overflow:visible;display:grid;place-items:center}
.portal-design .avatar>.avatar-art{position:absolute;inset:0;width:40.1222px;height:40px}
.portal-design .avatar-art img{display:block;width:40.1222px;height:40px;max-width:none}
.portal-design .avatar>span{position:relative}
.original-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;vertical-align:middle;line-height:0;min-width:24px;height:24px}
.original-icon img{display:block;flex-shrink:0;max-width:none;object-fit:contain}
.original-icon-bell{width:37.1131px;height:36px;mask:url('/assets/portal-figma/notification-mask.svg') center/37.1131px 36px no-repeat}
.original-icon-service{width:24px;height:24px;mask:url('/assets/portal-figma/service-mask.svg') center/24px 24px no-repeat}
.portal-design .icon-button{border:0;background:transparent;min-width:36px;width:36px;height:40px;color:#180e01;border-radius:6px}
.portal-design .icon-button:hover{background:#ffffff60}
.portal-design .notifications-button{width:37.1131px;min-width:37.1131px}
.portal-design .notification-count{border:1px solid #e5d8c1;background:#c6a04b;color:#180e01;min-width:17px;height:17px;font-size:10px;right:-3px;top:0}
.portal-design .content{max-width:none;margin:0;padding:24px;min-width:0}
.portal-design .page-header{margin:0 0 20px;padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:0;border:0;background:none}
.portal-design .page-header>div:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.portal-design .page-header h1{font-size:28px;line-height:40px;letter-spacing:0;max-width:none;margin:0;font-weight:700}
.portal-design .page-header p{margin:0;color:var(--muted);font-size:12px;line-height:17px;max-width:none}
.portal-design .page-header .page-kicker{margin:0;font-family:StudioCrimson,'Crimson Text',Georgia,serif;font-size:17px;line-height:17px;letter-spacing:0;text-transform:none;color:var(--muted);font-weight:700}
.portal-design .page-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:0;flex-shrink:0;max-width:55%}
.portal-design .page-header>.page-actions{width:460px}
.portal-design .btn,dialog .btn{font-family:inherit;font-size:14px;font-weight:600;line-height:20px;padding:9px 14px;min-height:40px;border-radius:6px;box-shadow:none;letter-spacing:0;background:#fff;color:var(--ink);border:1px solid var(--line);white-space:normal}
.portal-design .btn.primary,dialog .btn.primary{background:#c6a04b;color:#241c13;border-color:#c6a04b}
.portal-design .btn:hover,dialog .btn:hover{background:#f3e9d4}
.portal-design .btn.primary:hover,dialog .btn.primary:hover{background:#d5b66f;border-color:#d5b66f}
.portal-design .btn.subtle,dialog .btn.subtle{color:var(--ink);background:transparent;border-color:transparent;padding:9px 14px}
.portal-design .btn.danger,dialog .btn.danger{color:#9a4239;border-color:#e8c7c1;background:#fff7f5}
.portal-design .btn .icon,dialog .btn .icon{width:16px;height:16px}
.portal-design .panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none;min-width:0}
.portal-design .panel-head{padding:16px;border-bottom:1px solid var(--line);background:#fff;gap:12px;flex-wrap:wrap}
.portal-design .panel-head h2{font-size:20px;line-height:28px;font-weight:600}
.portal-design .panel-head p{font-size:12px;line-height:17px}
.portal-design .panel-body,.portal-design .feature-pad{padding:16px}
.portal-design .section-kicker{font-size:11px;line-height:16px;letter-spacing:0;text-transform:none;color:var(--muted);font-weight:400;margin-bottom:4px}
.portal-design .badge,.portal-design .feature-status{border:0;border-radius:12px;padding:5px 9px;font-size:11px;font-weight:400;line-height:16px;background:#f3e9d4;color:#756b5f;min-height:26px}
.portal-design .badge::before{display:none}
.portal-design .badge.online,.portal-design .badge.erledigt,.portal-design .feature-status.freigegeben,.portal-design .feature-status.veroeffentlicht{background:#e9f1e7;color:#427546}
.portal-design .badge.offen,.portal-design .badge.wartung,.portal-design .feature-status.aenderungen,.portal-design .feature-status.zur_pruefung{background:#f3e9d4;color:#8b632a}
.portal-design .badge.in_bearbeitung,.portal-design .badge.connected,.portal-design .badge.unconfigured{background:#f3e9d4;color:#756b5f}
.portal-design .search{background:#fff;border:1px solid var(--line);border-radius:6px;min-height:40px;min-width:200px;padding:7px 10px;gap:8px}
.portal-design .search input{font-size:12px;line-height:17px}
.portal-design .select-small{border:1px solid var(--line);border-radius:6px;min-height:40px;font-size:12px;background:#fff;color:var(--ink);max-width:100%;padding:8px 12px}
.portal-design .table-wrap{padding:12px 16px}
.portal-design .data-table{font-size:14px;line-height:20px;border-collapse:separate;border-spacing:0 4px}
.portal-design .data-table th{background:#fff;border:0;color:var(--muted);font-weight:400;font-size:11px;line-height:16px;padding:0 12px 6px}
.portal-design .data-table td{border:0;padding:12px;color:var(--muted);overflow-wrap:anywhere}
.portal-design .data-table tbody tr:nth-child(odd){background:#f8f8f8}
.portal-design .data-table td:first-child{border-radius:6px 0 0 6px}
.portal-design .data-table td:last-child{border-radius:0 6px 6px 0}
.portal-design .table-link{font-size:14px;line-height:20px;color:var(--ink);font-weight:600}
.portal-design .site-domain{font-size:12px;line-height:17px;color:var(--muted);overflow-wrap:anywhere}
.portal-design .empty{padding:40px 20px;color:var(--muted);font-size:12px;line-height:19px;min-height:145px}
.portal-design .empty strong{font-size:20px;line-height:28px;color:var(--ink);margin-bottom:8px}
.portal-design .section-gap{margin-top:20px}
.portal-design .toolbar{gap:8px;margin-bottom:16px;flex-wrap:wrap}
.portal-design .notice,dialog .notice{border:1px solid var(--line);background:#fcf9f2;border-radius:6px;color:var(--muted);font-size:12px;line-height:18px;padding:12px;margin:12px 0}
.portal-design .notice strong,dialog .notice strong{color:var(--ink)}
.portal-design .input,dialog .input{font-family:inherit;font-size:14px;line-height:20px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:6px;min-height:42px;padding:10px 12px;max-width:100%;box-shadow:none}
.portal-design .form-field label,dialog .form-field label{font-size:12px;line-height:17px;font-weight:600;margin-bottom:6px}
.portal-design .textarea,dialog .textarea{min-height:112px}
.portal-design .form-field,dialog .form-field{margin-bottom:16px;min-width:0}
.portal-design .upload-hint,dialog .upload-hint{font-size:11px;line-height:16px;color:var(--muted);margin-top:6px}
.portal-design .form-columns,dialog .form-columns{gap:16px}
.portal-design .small-copy{font-size:12px;line-height:18px}
.portal-design .profile-details dt{font-size:12px;line-height:17px;color:var(--muted);font-weight:400}
.portal-design .profile-details dd{font-size:14px;line-height:20px;color:var(--ink)}
.portal-design .metrics-grid,.studio-summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.studio-summary-metric{padding:16px;display:flex;flex-direction:column;gap:12px}
.studio-summary-metric span{font-size:12px;line-height:17px;color:var(--muted)}
.studio-summary-metric strong{font-size:30px;line-height:42px;font-weight:600}
.studio-summary-sites,.customer-website-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.studio-summary-site{padding:16px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}
.studio-summary-site h2{font-size:20px;line-height:28px}
.studio-summary-site p{font-size:12px;line-height:17px;color:var(--muted)}
.portal-design .customer-gallery-hint{margin:0 0 16px;font-size:11px;line-height:16px;color:var(--muted)}
.portal-design .customer-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.portal-design .website-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.portal-design .customer-project-card{border-radius:12px;box-shadow:none;overflow:hidden;background:white}
.portal-design .customer-card-cover{height:180px;min-height:0;border:0;border-radius:0;background:#f3e9d4}
.portal-design .customer-card-cover-fallback{background:#f3e9d4}
.portal-design .customer-cover-fallback-content{gap:12px;color:#756b5f}
.portal-design .customer-cover-fallback-content img{display:none}
.portal-design .customer-cover-shade{background:linear-gradient(0deg,#180e0170,transparent)}
.portal-design .customer-card-identity{padding:16px;gap:12px;background:#fff}
.portal-design .customer-card-avatar{width:44px;height:44px;min-width:44px;border:1px solid var(--line);background:#f3e9d4;border-radius:50%;font-size:14px;color:#8b632a}
.portal-design .customer-card-title h2{font-size:20px;line-height:28px;letter-spacing:0;color:var(--ink)}
.portal-design .customer-card-title .customer-id{margin-top:4px;font-size:11px;padding:0;border:0;color:var(--muted);background:none}
.portal-design .customer-card-details{padding:0 16px 16px}
.portal-design .customer-card-details .contact{font-size:12px;line-height:17px}
.portal-design .customer-sites{margin-top:12px;padding-top:12px;border-color:var(--line)}
.portal-design .customer-sites button{font-size:12px;min-height:40px;background:#f8f8f8;border:0;border-radius:6px;margin-top:6px}
.portal-design .customer-card-footer{border-color:var(--line);gap:8px;padding-top:12px;margin-top:12px;flex-wrap:wrap}
.portal-design .customer-card-footer .btn{font-size:12px;padding:8px;min-height:36px}
.portal-design .customer-project-card .customer-card-footer .btn{font-size:12px;line-height:18px;padding:8px;min-height:36px}
.portal-design .customer-project-card .customer-cover-fallback-content span{color:var(--muted);font-size:12px;line-height:17px;letter-spacing:0}
.portal-design .customer-card-cover-fallback .customer-cover-shade{display:none}
.portal-design .customer-card-cover-fallback .customer-cover-open-hint{color:var(--muted)}
.portal-design .website-card .customer-card-cover{height:160px}
.portal-design .website-card-meta{font-size:12px;line-height:17px}
.customer-website-card{padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.customer-website-card h2{font-size:20px;line-height:28px;overflow-wrap:anywhere}
.customer-website-card>p{font-size:12px;line-height:17px;color:var(--muted)}
.collection-cover{width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f3e9d4}
.collection-cover-address{font-size:11px;line-height:16px;padding:8px;background:#fff;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collection-cover-image{width:100%;height:157px;overflow:hidden;background:#f3e9d4;display:grid;place-items:center}
.collection-cover-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:top}
.collection-cover-image>span{font-size:12px;line-height:17px;color:var(--muted);padding:16px;text-align:center}
.portal-design .workspace-toolbar{padding:0;gap:16px;margin-bottom:16px;background:none;border:0}
.portal-design .website-tabs{margin:0;gap:8px;max-width:100%}
.portal-design .website-tab{padding:9px 12px;min-width:0;min-height:40px;border-color:var(--line);border-radius:6px;font-size:12px}
.portal-design .team-grid{gap:16px;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)}
.portal-design .customer-workspace{display:block}
.portal-design .preview-grid{background:#f8f8f8;padding:16px;gap:16px;grid-template-columns:minmax(0,1fr) 200px}
.portal-design .preview-label{font-size:11px;line-height:16px;letter-spacing:0;color:var(--muted)}
.portal-design .desktop-browser{border-color:var(--line);border-radius:6px;background:white;box-shadow:none}
.portal-design .browser-chrome{background:#f3e9d4}
.portal-design .phone-frame{border-color:var(--line);box-shadow:none}
.portal-design .preview-help{padding:12px 16px;font-size:11px;line-height:16px;color:var(--muted)}
.portal-design .website-review-strip{padding:16px;background:#fcf9f2;border-color:var(--line);font-size:12px;line-height:18px}
.portal-design .website-file-summary{margin-bottom:20px;padding:16px}
.portal-design .website-file-summary h2{font-size:20px;line-height:28px}
.portal-design .customer-bottom,.portal-design .analysis-layout{gap:16px;margin-top:20px}
.portal-design .request-form{padding:16px}
.portal-design .stat-strip{padding:16px}
.portal-design .stat-value strong{font-size:30px;line-height:42px;letter-spacing:0;font-weight:600}
.portal-design .stat-value span{font-size:12px;line-height:17px}
.portal-design .control-row p{font-size:12px;line-height:18px}
.portal-design .control-note{font-size:11px;line-height:16px}
.portal-design .files-grid{gap:16px}
.portal-design .file-card{border-color:var(--line);border-radius:12px;box-shadow:none}
.portal-design .file-card-body{padding:16px}
.portal-design .file-card-body strong{font-size:14px;line-height:20px}
dialog{font-family:StudioInter,Inter,Arial,sans-serif;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);box-shadow:0 16px 60px #180e0126;width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100svh - 48px);padding:0}
dialog::backdrop{background:#180e0159;backdrop-filter:none}
dialog .modal-header{padding:20px 24px;border-bottom:1px solid var(--line);gap:16px;align-items:flex-start;background:#fff}
dialog .modal-header h2{font-size:20px;line-height:28px;font-weight:600;letter-spacing:0;color:var(--ink)}
dialog .modal-header p{font-size:12px;line-height:18px;color:var(--muted);margin-top:4px}
dialog .modal-header .icon-button{border:0;background:none;width:32px;min-width:32px;height:32px;color:var(--ink)}
dialog .modal-content{padding:20px 24px}
dialog .modal-footer{padding-top:16px;margin-top:16px;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line)}
dialog .detail-meta{font-size:12px;color:var(--muted);gap:12px;flex-wrap:wrap}
dialog .detail-description{font-size:14px;line-height:22px;margin:16px 0}
dialog .message{background:#f8f8f8;border:1px solid var(--line);padding:12px;border-radius:6px}
dialog .message.team{background:#fcf9f2}
dialog .message p{font-size:14px;line-height:20px}
.portal-search-results{display:flex;flex-direction:column;gap:6px;margin-top:16px}
.portal-search-result{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:6px;background:white;text-align:left}
.portal-search-result:hover{background:#fcf9f2}
.portal-search-result strong{font-size:14px;line-height:20px;font-weight:600;display:block}
.portal-search-result small{font-size:12px;line-height:17px;display:block;color:var(--muted)}
.mobile-brandbar,.sidebar-dismiss,.sidebar-backdrop{display:none}
body:has(.portal-design)>.legal-links{margin-left:202px;background:#f8f8f8;border:0;color:var(--muted);font-family:inherit;font-size:11px;padding:16px 24px;gap:16px}
@media(min-width:761px) and (max-height:850px){.portal-design .nav{gap:4px}.sidebar-brand{height:78px;min-height:78px}.sidebar-lower{padding-top:16px}.portal-design .nav-secondary{margin-bottom:12px}.portal-design .nav button{min-height:42px}.nav-active-art{top:-32px}.local-workspace-label{display:none}}
@media(min-width:761px) and (max-width:1170px){.portal-design .website-cards,.customer-website-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-design .page-actions{max-width:58%}.portal-search{width:200px}.portal-design .top-actions{gap:10px}.portal-design .profile-caption{max-width:100px}.portal-design .team-grid{grid-template-columns:minmax(0,1fr)}.studio-summary-sites{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-design .customer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .portal-design{display:block;min-height:100svh}
  .mobile-brandbar{height:62px;padding:6px 16px 5px 20px;display:flex;align-items:center;justify-content:space-between;background:#180e01;color:#d5b66f}
  .mobile-brandbar>img{width:142px;height:51px;max-width:none;display:block}
  .mobile-menu-trigger{height:42px;min-width:56px;border:0;border-radius:6px;background:none;color:#d5b66f;font-size:13px;font-weight:600;padding:10px}
  .portal-design .sidebar{position:fixed;width:263px;max-width:calc(100vw - 44px);height:100dvh;min-height:0;transform:translateX(-100%);transition:transform .18s ease;z-index:60;border:0}
  .portal-design .sidebar.open{transform:translateX(0)}
  .portal-design .sidebar .sidebar-brand{min-height:82px;height:82px}
  .portal-design .sidebar .brand{margin-left:25px}
  .sidebar-dismiss{display:grid;place-items:center;position:absolute;top:15px;right:10px;border:1px solid #d5b66f55;border-radius:6px;width:34px;height:34px;background:#f8f8f8}
  .portal-design .nav{gap:5px;padding-right:12px}
  .portal-design .nav button{width:100%;min-height:44px;font-size:16px}
  .portal-design .nav button.active{background:#f8f8f8;border-radius:6px}
  .portal-design .nav-active-art{display:none}
  .sidebar-lower{padding-top:20px}
  .portal-design .nav-secondary{margin-bottom:14px}
  .sidebar-backdrop.visible{display:block;position:fixed;inset:0;background:#180e0159;z-index:55}
  .portal-design .main-shell{width:100%;min-width:0}
  .portal-design .topbar{height:48px;min-height:48px;padding:0 14px 0 16px;gap:8px}
  .portal-design .workspace-identity{gap:8px}
  .portal-design .workspace-identity>span{display:inline;font-size:11px;line-height:16px}
  .portal-design .customer-id{font-size:11px;line-height:16px;padding:7px 6px}
  .portal-design .top-actions{gap:10px;flex:0 1 auto}
  .portal-search{border:0;background:none;padding:0;width:24px;min-width:24px;height:32px}
  .portal-search>span:first-child{display:none}
  .portal-search .original-icon-search img{display:none}
  .portal-search .original-icon-search{width:24px;height:24px;background:url('/assets/portal-figma/search-mobile.svg') center no-repeat}
  .portal-design .topbar .profile-caption{display:none}
  .portal-design .content{padding:16px}
  .portal-design .page-header{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:20px}
  .portal-design .page-actions{max-width:none;width:100%;align-items:flex-start;gap:8px;flex-wrap:wrap}
  .portal-design .page-header>.page-actions{width:100%}
  .portal-design .page-header h1{font-size:28px;line-height:40px}
  .portal-design .page-actions .search{width:100%;flex-basis:100%;min-width:0}
  .portal-design .customer-cards,.portal-design .website-cards,.customer-website-gallery,.studio-summary-sites{grid-template-columns:minmax(0,1fr);gap:16px}
  .studio-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .portal-design .team-grid,.portal-design .customer-bottom,.portal-design .analysis-layout,.portal-design .form-columns,dialog .form-columns{grid-template-columns:minmax(0,1fr);gap:16px}
  .portal-design .preview-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .portal-design .phone-frame{width:220px}
  .portal-design .table-wrap{padding:12px 8px;max-width:100%;overflow-x:auto}
  .portal-design .data-table th{padding:0 8px 6px}
  .portal-design .data-table td{padding:10px 8px;font-size:12px;line-height:18px}
  .portal-design .table-link{font-size:12px;line-height:18px}
  .portal-design .workspace-toolbar{align-items:stretch;flex-direction:column}
  .portal-design .website-tabs{width:100%;overflow-x:auto}
  .portal-design .stat-strip{grid-template-columns:1fr 1fr;gap:16px}
  .portal-design .stat-strip .mini-chart{grid-column:1/-1;margin:0}
  .portal-design .customer-card-cover{height:170px}
  .portal-design .customer-card-title h2{font-size:20px;line-height:28px}
  .portal-design .user-profile{max-width:40.1222px}
  .portal-design .topbar .top-actions .user-profile{display:flex}
  .portal-design .website-review-strip{gap:12px;align-items:flex-start;flex-direction:column}
  dialog{max-height:calc(100dvh - 32px);width:calc(100vw - 32px);max-width:calc(100vw - 32px);margin:auto}
  dialog .modal-header{padding:16px;gap:12px}
  dialog .modal-content{padding:16px}
  dialog .modal-footer .btn{flex:1;min-width:0}
  dialog .form-row{gap:12px;flex-wrap:wrap}
  body:has(.portal-design)>.legal-links{margin-left:0;padding:16px;gap:12px;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.portal-design .sidebar{transition:none}}

/* Shared finishing details; original Figma artwork and login layout stay intact. */
.portal-design .page-header>.page-actions{width:auto;justify-content:flex-end}
.portal-design .panel-head>div,.portal-design .customer-card-title{min-width:0}
.portal-design :is(.panel-head h2,.customer-card-title h2,.studio-summary-site h2,.file-card-body strong){overflow-wrap:anywhere;white-space:normal}
.portal-design .customer-cards,.portal-design .website-cards{align-items:stretch}
.portal-design .customer-project-card{display:flex;flex-direction:column;height:100%}
.portal-design .customer-project-card .customer-card-cover{flex-shrink:0}
.portal-design .customer-project-card .customer-card-details{flex:1;display:flex;flex-direction:column;gap:12px}
.portal-design .customer-project-card .customer-card-footer{margin-top:auto}
.portal-design :is(.customer-website-card,.studio-summary-site)>button:last-child{margin-top:auto}
.portal-design .customer-card-details .contact{overflow-wrap:anywhere;color:var(--muted)}
.portal-design .customer-project-card :is(.customer-cover-label,.customer-cover-count,.customer-cover-open-hint){font-size:11px;line-height:16px}
.portal-design .collection-cover{flex-shrink:0}
.portal-design .customer-website-card{cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.portal-design .customer-website-card:focus-within{border-color:#c6a04b}
.portal-design .customer-website-card>.btn{align-self:stretch;justify-content:space-between;border-color:var(--line);background:#fcf9f2}
@media(hover:hover){.portal-design .customer-website-card:hover{border-color:#c6a04b;box-shadow:0 8px 24px #180e0112;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.portal-design .customer-website-card,.portal-design .customer-website-card:hover{transition:none;transform:none}}
.portal-design .search input{min-width:0;width:100%}
.portal-design .select-small{height:40px}
.portal-design select.input,dialog select.input{height:42px}
.portal-design .portal-search{border-radius:6px}
.portal-design :is(button,a,[tabindex]):focus-visible,dialog :is(button,a,[tabindex]):focus-visible{outline:2px solid #8b632a;outline-offset:3px}
.portal-design .sidebar :is(button,a):focus-visible{outline-color:#d5b66f;outline-offset:-3px}
dialog .modal-header{position:sticky;top:0;z-index:3}
dialog .modal-header>div{min-width:0}
dialog .modal-header :is(h2,p){overflow-wrap:anywhere}
dialog .modal-header .icon-button{width:44px;min-width:44px;height:44px;flex-shrink:0;border-radius:6px}
dialog .modal-header .icon-button:hover{background:#f3e9d4}
dialog .modal-content{overflow-wrap:anywhere}
@media(max-width:760px){
  .portal-design .page-header>.page-actions{width:100%;min-width:0;justify-content:flex-start}
  .portal-design :is(.btn,.select-small,.website-tab,.customer-sites button){min-height:44px}
  .portal-design .customer-project-card .customer-card-footer .btn{min-height:44px}
  .portal-design :is(.icon-button,.portal-search,.user-profile){height:44px;min-width:44px;justify-content:center}
  .portal-design .topbar .user-profile{max-width:44px;width:44px}
  .portal-design .sidebar-dismiss{width:44px;height:44px;top:10px;right:8px}
  .portal-design .input,dialog .input,.portal-design .select-small,.portal-design .search input{font-size:16px}
  .portal-design .search input{min-height:44px}
  .portal-design .table-link{min-height:44px;display:inline-flex;align-items:center;text-align:left;white-space:normal}
  .portal-design .chevron-link{width:44px;min-width:44px;height:44px}
  .portal-design .request-list-item>button{min-height:44px}
  .portal-design .select-small,.portal-design select.input,dialog select.input{height:44px;min-width:0;max-width:100%}
  dialog .btn{min-height:44px}
  .portal-design .customer-card-identity{align-items:flex-start}
  .portal-design .topbar .top-actions>[data-background-pending]{max-width:calc(100vw - 32px);right:16px;bottom:16px}
}
@media(max-width:380px){
  .portal-design .topbar{padding-left:12px;padding-right:12px;gap:4px}
  .portal-design .top-actions{gap:0}
  .portal-design .workspace-identity{gap:5px}
  .portal-design .workspace-identity>span{font-size:10px}
}

/* One loaded website document serves both device modes. */
.portal-design .preview-grid.single-preview{display:block;grid-template-columns:none}
.single-preview .preview-mode-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.single-preview-stage{min-width:0}
.single-preview-stage.mobile-stage .desktop-browser{max-width:402px;margin:auto}
.single-preview-stage.mobile-stage .viewport{aspect-ratio:390/760;border-radius:12px}
.preview-resume-notice{position:absolute;left:12px;right:12px;bottom:12px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#fffdf4;border:1px solid #daceab;border-radius:8px;color:#62583e;font-size:12px;box-shadow:0 4px 18px #0002}
.preview-expanded .preview-resume-notice{z-index:5}
@media(max-width:760px){.preview-resume-notice{flex-wrap:wrap;font-size:11px}.single-preview .preview-mode-toolbar{gap:8px;flex-wrap:wrap}}

/* Request forms share the dialog spacing; avoid a second inner gutter on phones. */
dialog .request-form{padding:0}
@media(max-width:760px){
  :is(.request-form,.reply-form) .form-row{flex-wrap:wrap;gap:10px}
  :is(.request-form,.reply-form) :is(.form-row .btn,.upload-button){font-size:14px;line-height:20px;min-height:44px;white-space:normal;justify-content:center}
  :is(.request-form,.reply-form) .form-row>.btn{margin-left:auto}
}

/* Touch devices also need readable fields and targets in landscape orientation. */
@media(pointer:coarse){
  html .portal-design .input,html dialog .input,html .portal-design .select-small,html .portal-design .search input{font-size:16px}
  html .portal-design .btn,html dialog .btn,html .portal-design .select-small{min-height:44px}
}

/* Customer home: actionable items first, then the existing website gallery. */
.customer-next-steps{padding:20px;margin-bottom:28px}
.customer-next-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.customer-next-heading h2{font-size:20px;line-height:28px;margin:0;color:var(--ink)}
.customer-next-heading p{font-size:14px;line-height:21px;color:var(--muted);margin:6px 0 0}
.customer-next-heading>.count-pill{flex-shrink:0;white-space:nowrap;font-size:12px;padding:6px 10px}
.customer-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.customer-action-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fffcf5}
.customer-action-kind{font-size:12px;line-height:18px;color:#795d2a}
.customer-action-card h3{font-size:18px;line-height:25px;overflow-wrap:anywhere;margin:0}
.customer-action-card p{font-size:14px;line-height:21px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 5px}
.customer-action-card .btn{margin-top:auto;white-space:normal;text-align:left;min-height:44px}
.customer-action-notice{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:21px;background:#f8f8f8}
.customer-action-notice .btn{margin-top:10px}
.customer-action-empty{font-size:14px;line-height:21px;color:var(--muted);margin:18px 0 0}
.customer-websites-heading{font-size:20px;line-height:28px;margin:0 0 12px}
@media(max-width:760px){
  .customer-next-steps{padding:16px;margin-bottom:24px}
  .customer-action-grid{grid-template-columns:1fr}
  .customer-action-card{padding:16px}
  .customer-action-card .btn{width:100%;justify-content:space-between}
  .customer-next-heading{gap:10px;flex-wrap:wrap}
}
