/* Functional additions only. Approved portal typography, spacing and palette stay in portal.css. */
.workspace { min-height:calc(100dvh - 78px); }
.login-page { min-height:calc(100dvh - 78px); }
.login-links a { text-decoration:underline; text-underline-offset:4px; color:#ddd; }
.sidebar-foot a { display:inline; padding:0; border:0; font-size:11px; }
.production-services { grid-template-columns:repeat(2,minmax(0,1fr)); }
.service-option label { min-height:51px; }
.toolbar { grid-template-columns:minmax(0,1fr) 205px auto; }
.toolbar .filter-submit { min-width:85px; }
.file-input:focus-visible + small { outline:2px solid var(--accent); outline-offset:4px; }
.dropzone label { cursor:pointer; }
.selected-files .file-row { font-size:12px; }
.file-input { position:static; width:100%; height:auto; opacity:1; min-height:44px; margin-top:12px; font-size:11px; }
.dropzone .file-input { border:0; padding:6px 0; background:transparent; }
.file-input::file-selector-button { display:none; }
.portal-enhanced .file-input { position:absolute; width:1px; height:1px; min-height:0; padding:0; margin:0; border:0; opacity:0; }
.dropzone:focus-within { border-color:var(--accent); }
.file-history { margin-top:24px; }
.file-history summary { color:var(--muted); font-size:12px; cursor:pointer; }
.password-help { max-width:700px; padding-block:50px; }
.password-help p { margin:22px 0; }
.busy-message { margin-top:10px; color:var(--accent); font-size:12px; }
.page-head>div { min-width:0; }
.page-head h1 { overflow-wrap:anywhere; }
.request-table td,.request-table th { overflow-wrap:anywhere; }
.user-id { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:800px) { .workspace { min-height:0; } .toolbar { grid-template-columns:minmax(0,1fr) 185px; } .filter-submit { grid-column:1/-1; } }
@media(max-width:600px) { .toolbar,.production-services { grid-template-columns:minmax(0,1fr); } .file-input { font-size:12px; } .form-footer .actions { grid-template-columns:1fr; } .top-actions>a { font-size:10px; } }

/* Clear, consistently sized controls for the working portal. */
.btn { min-height:48px; gap:10px; padding:12px 18px; font-size:13px; border-radius:3px; }
.btn.secondary { background:#151515; border-color:#484848; }
.btn.secondary:hover { background:#202020; border-color:var(--accent); }
.btn.small { min-height:44px; padding:10px 14px; font-size:12px; }
.action-icon { display:block; width:18px; height:18px; flex:0 0 18px; }
.portal-action { min-height:46px; }
.top-brand,.top-actions { min-width:0; }
.top-actions { gap:12px; }
.top-actions .site-return { min-height:46px; color:var(--text); font-size:13px; }
.top-actions form { flex-shrink:0; }
.row-open { display:inline-flex; min-height:46px; padding:11px 14px; gap:8px; white-space:nowrap; }
.file-row .btn { flex-shrink:0; font-size:12px; }
.breadcrumb .back-button { min-height:44px; font-size:12px; margin-right:8px; }
@media(max-width:1150px) {
  .top-actions .user-id { display:none; }
  .row-open { padding-inline:10px; }
}
@media(max-width:800px) { .portal-wordmark { display:none; } }
@media(max-width:600px) {
  .topbar { height:auto; min-height:69px; flex-wrap:wrap; padding:14px 18px; gap:12px; }
  .top-actions { width:100%; gap:8px; }
  .top-actions .site-return { flex:1; min-width:0; padding-inline:12px; font-size:12px; }
  .top-actions .site-return span { min-width:0; }
  .top-actions .logout-button { min-height:46px; padding-inline:14px; font-size:12px; }
  .request-table td.request-open-cell { display:block; grid-column:1/-1; }
  .request-table td.request-open-cell::before { display:none; }
  .row-open { width:100%; }
  .file-row .btn { min-height:46px; font-size:12px; }
}

/* Separate public-inquiry administration; tuning requests keep their own workflow. */
.inquiries-count { display:inline-flex; align-items:center; justify-content:center; min-width:24px; min-height:24px; padding:2px 6px; background:#24220e; color:var(--accent); font-size:11px; }
.toolbar.inquiries-toolbar { grid-template-columns:minmax(0,260px) auto; justify-content:start; }
.inquiries-list { border:1px solid var(--line); }
.inquiry-item { padding:24px; background:#0b0b0b; }
.inquiry-item+.inquiry-item { border-top:1px solid var(--line); }
.inquiry-item-head,.inquiry-item-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.inquiry-item-head>div { min-width:0; }
.inquiry-name { display:inline-block; padding-block:5px; color:var(--accent); font-size:17px; font-weight:700; overflow-wrap:anywhere; }
.inquiry-item-head p,.inquiry-item-foot time { color:var(--muted); font-size:12px; }
.inquiry-excerpt { margin:16px 0; color:#d4d4d4; line-height:1.7; overflow-wrap:anywhere; }
.inquiry-contact { display:flex; flex-wrap:wrap; gap:10px 24px; margin-bottom:16px; }
.inquiry-contact a { min-height:36px; display:inline-flex; align-items:center; font-size:13px; text-decoration:underline; text-underline-offset:4px; overflow-wrap:anywhere; }
.inquiry-detail { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:32px; }
.inquiry-detail>* { min-width:0; }
.inquiry-detail .detail-section h2 { margin-bottom:22px; font-size:20px; }
.inquiry-detail .definition { margin-bottom:34px; }
.inquiry-detail a,.inquiry-full-message { overflow-wrap:anywhere; }
.inquiry-full-message { margin-bottom:24px; line-height:1.8; }
.inquiry-mail-state { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
.inquiry-mail-state p { margin:12px 0; }
@media(max-width:1150px) { .inquiry-detail { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) {
  .toolbar.inquiries-toolbar { grid-template-columns:minmax(0,1fr); }
  .inquiry-item { padding:20px 18px; }
  .inquiry-item-head,.inquiry-item-foot { align-items:flex-start; flex-direction:column; }
  .inquiry-item-foot .btn { width:100%; }
  .inquiry-contact { gap:5px 16px; }
  .inquiry-contact a { min-height:44px; }
}
