/* Use available browser width; keep action targets and readable type stable. */
html { scrollbar-gutter:stable; }
body .content, body .content:has(.quote-page) { width:100%; max-width:none; margin:0; padding:18px 24px 32px; }
body .main, body .content, .entry-main, .entry-aside { min-width:0; }
body .entry-layout { grid-template-columns:minmax(0,1fr) minmax(260px,320px); }
body .dashboard-toolbar, body .dashboard-toolbar .toolbar-left { flex-wrap:wrap; gap:10px; }
body .quote-workspace { grid-template-columns:minmax(430px,31%) minmax(0,1fr) !important; }
body .quote-item-row { grid-template-columns:18px minmax(62px,1.2fr) minmax(62px,1.2fr) minmax(48px,.9fr) minmax(66px,1fr) 30px 30px !important; gap:6px; }
body .quote-item-row .input { min-height:36px; padding:5px 7px; font-size:14px; }
body .quote-item-row .duplicate-size,body .quote-item-row .remove-quote-item { width:30px;height:36px; }
#quoteItems input[type=number] { appearance:textfield; -moz-appearance:textfield; }
#quoteItems input::-webkit-inner-spin-button,#quoteItems input::-webkit-outer-spin-button { -webkit-appearance:none;margin:0; }
body .quote-modes { min-width:0; }
body .content:has(.quote-page) .workspace-page-heading { display:flex; align-items:center; gap:16px; min-width:0; }
.workspace-page-heading > h1 { flex:none; }
body[data-view=orderForm] .workspace-page-heading,body[data-view=offlineForm] .workspace-page-heading { display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px 20px; }
.entry-back { flex:none; }
.v93-announcement { display:flex; align-items:center; gap:12px; flex:1; min-width:0; border:1px solid var(--notice-rule); border-left:4px solid var(--notice-ink); border-radius:6px; padding:9px 12px; color:var(--notice-ink); background:var(--notice-bg); }
.v93-announcement.jade,.v93-notice-dialog.jade { --notice-ink:#236353; --notice-bg:#eaf4ef; --notice-rule:#bbd8cd; }
.v93-announcement.rose,.v93-notice-dialog.rose { --notice-ink:#91364d; --notice-bg:#fbeef1; --notice-rule:#e9c4cc; }
.v93-announcement.amber,.v93-notice-dialog.amber { --notice-ink:#745511; --notice-bg:#fcf4d9; --notice-rule:#e4d49c; }
.v93-announcement.empty { --notice-ink:#646a67; --notice-bg:#f6f8f6; --notice-rule:#d9dfda; }
.notice-open { display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:none;border:0;color:inherit;padding:0;text-align:left;cursor:pointer;font:inherit; }
.notice-open strong { flex:0 1 auto;max-width:28%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px; }
.notice-open .notice-excerpt { flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.notice-open small { font-size:11px;white-space:nowrap; }
.notice-label { font-size:11px;font-weight:700;white-space:nowrap; }
.v93-announcement svg { width:18px;height:18px;flex:none; }
.notice-manage { flex:none; }
.notice-empty { display:flex;align-items:center;gap:8px;flex:1;font-size:13px; }
dialog.v93-editor,dialog.v93-notice-dialog { color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:8px;padding:0;box-shadow:0 16px 65px #0003; }
dialog::backdrop { background:#171c244d; }
dialog.v93-editor { width:calc(100% - 48px);max-width:1480px;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px); }
.v93-modal-open { overflow:hidden; }
.v93-editor-head { position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--rule);background:var(--paper); }
.v93-editor-head > div { min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 18px; }
.v93-editor-head h2 { margin:0;font-size:19px; }
.v93-editor-head span { color:var(--ink-2);overflow-wrap:anywhere; }
#orderEditorBody { padding:20px;background:var(--bg); }
#orderEditorBody > #orderForm.panel { padding:0;background:transparent;border:0;box-shadow:none; }
#orderEditorBody > .panel:has(#offlineOrderForm) { padding:0;background:transparent;border:0; }
#orderEditorBody .entry-aside { position:static; }
#orderEditorBody .entry-savebar { position:static; }
.v93-editor .input { min-width:0; }
dialog.v93-notice-dialog { width:600px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);padding:24px; }
.v93-notice-dialog header { display:flex;align-items:center;gap:10px;color:var(--notice-ink,var(--ink));font-weight:600; }
.v93-notice-dialog header svg { width:22px;height:22px; }
.v93-notice-dialog h2 { font-size:21px;line-height:1.5;overflow-wrap:anywhere;margin:14px 0; }
.notice-full { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;padding:18px;border-radius:6px;background:var(--notice-bg,#f3f6f4); }
.v93-notice-dialog footer { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:22px; }
.v93-notice-dialog footer small { margin-right:auto;color:var(--ink-2); }
.v93-notice-manager .field { margin-top:16px; }
.notice-status { color:var(--ink-2);font-size:12px; }
@media (min-width:1800px) { body .entry-layout { grid-template-columns:minmax(0,1fr) 340px; } }
@media (max-width:1350px) {
  body .content,body .content:has(.quote-page) { padding:16px; }
  body .quote-workspace { grid-template-columns:420px minmax(0,1fr) !important;gap:12px; }
  body .quote-workspace > .quote-editor { padding:12px; }
  .notice-open small,.notice-label { display:none; }
  body .quote-mode-card .quote-mode-detail { grid-template-columns:1fr;gap:2px; }
  body .quote-mode-card .quote-mode-detail > div { justify-content:space-between; }
}
@media (max-width:1100px) {
  body .entry-layout { grid-template-columns:minmax(0,1fr) 250px; }
  body .item-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body .quote-workspace { grid-template-columns:minmax(0,1fr) !important; }
  body .quote-editor .quote-field-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body .quote-editor .quote-field-grid .field { grid-column:auto; }
  body .quote-modes { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body .quote-mode-card .quote-mode-detail { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body #quoteItems { max-height:220px; }
  .v93-announcement { gap:6px; }
}
@media (max-width:750px) {
  body .content,body .content:has(.quote-page) { padding:12px; }
  body .entry-layout,body .dashboard-grid,body .dashboard-grid:has(.daily-trend-panel) { grid-template-columns:minmax(0,1fr); }
  body .content:has(.quote-page) .workspace-page-heading { flex-wrap:wrap;gap:10px; }
  .v93-announcement { flex-basis:100%; }
  .notice-open strong { max-width:40%; }
  body .quote-editor .quote-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body .quote-item-row { grid-template-columns:14px minmax(45px,1fr) minmax(45px,1fr) minmax(38px,.8fr) minmax(57px,1fr) 28px 28px !important;gap:4px;padding:5px 3px; }
  body .quote-item-row .input { padding:5px 4px;font-size:13px; }
  body .quote-item-row .duplicate-size,body .quote-item-row .remove-quote-item { width:28px; }
  body .item-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  dialog.v93-editor { width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px); }
  #orderEditorBody { padding:12px; }
  .v93-editor-head { padding:12px; }
  body .entry-main .grid.three { grid-template-columns:minmax(0,1fr); }
  body .entry-main #entry-notes { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:480px) {
  body .quote-modes { grid-template-columns:minmax(0,1fr); }
  .notice-open { flex-wrap:wrap;gap:4px 8px; }
  .notice-open .notice-excerpt { flex-basis:100%; }
  .notice-open strong { max-width:calc(100% - 52px); }
  .notice-open > svg:last-child { display:none; }
}
