/* GGT Estimation project register */
.ggt-project-card :is(h2,h3,p,dl,dd,ol) { margin:0; }
.ggt-card-ref, .ggt-flow-caption, .ggt-estimates-top, .ggt-flow-title {
  display:flex; align-items:center; justify-content:space-between; gap:6px 10px; flex-wrap:wrap;
}
.ggt-card-ref { font-size:.8125rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.ggt-card-ref b { color:var(--text); }
.content .ggt-project-card .ggt-card-ref .work-status { font-size:.8125rem; }
.content .ggt-project-card .ggt-card-identity h2 { margin:0; font-size:1.18rem; line-height:1.25; font-weight:650; }
.ggt-card-identity p { margin-top:4px; color:var(--muted); font-size:.875rem; overflow-wrap:anywhere; }
.ggt-project-card .ggt-flow {
  border-radius:12px;
  padding:12px 14px;
  background:color-mix(in srgb,var(--stage-ink) 6%,var(--panel,#fff));
  border:1px solid color-mix(in srgb,var(--stage-ink) 19%,var(--line));
}
:is(.ggt-project-card .ggt-flow,.ggt-tone) { color-scheme:light; --stage-ink:light-dark(#245c9a,#9bc8ff); }
html[data-theme=dark] :is(.ggt-project-card .ggt-flow,.ggt-tone) { color-scheme:dark; }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=review] { --stage-ink:light-dark(#684694,#d2b6fd); }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=attention] { --stage-ink:light-dark(#9a481b,#ffb78c); }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=ready] { --stage-ink:light-dark(#116d70,#87dcda); }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=client] { --stage-ink:light-dark(#825b0c,#f6cf81); }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=signed] { --stage-ink:light-dark(#257044,#9bdab0); }
:is(.ggt-project-card .ggt-flow,.ggt-tone)[data-tone=quiet] { --stage-ink:var(--muted); }
.ggt-tone[data-tone=late] { --stage-ink:light-dark(#a5293c,#ffaabb); }
.ggt-flow-caption { font-size:.75rem; color:var(--muted); font-weight:550; line-height:1.4; }
.ggt-flow-title { color:var(--stage-ink); margin-top:2px; }
.ggt-flow-title strong { font-size:1.0625rem; font-weight:650; line-height:1.35; }
.ggt-flow-title>span { font-size:.75rem; color:var(--muted); }
:is(.ggt-project-card,.ggt-project-table) .ggt-steps {
  list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  padding:0; margin:11px -5px 0; text-align:center;
}
.ggt-steps li { position:relative; display:grid; align-content:start; justify-items:center; gap:4px; color:var(--muted); font-size:.75rem; line-height:1.25; overflow-wrap:anywhere; }
.ggt-steps li:not(:first-child)::before {
  content:''; position:absolute; height:2px; top:6px; right:calc(50% + 8px); width:calc(100% - 16px);
  background:var(--line,#d5dbe3);
}
.ggt-steps li:is([data-step=done],[data-step=current]) + li:is([data-step=done],[data-step=current])::before { background:var(--stage-ink); }
.ggt-steps i {
  box-sizing:border-box; display:grid; place-items:center; width:14px; height:14px; border-radius:100%;
  border:1px solid var(--muted); background:var(--panel,#fff);
}
.ggt-steps [data-step=done] i { border-color:var(--stage-ink); color:var(--stage-ink); }
.ggt-steps [data-step=current] { color:var(--stage-ink); font-weight:700; }
.ggt-steps [data-step=current] i { border:4px solid var(--stage-ink); }
.ggt-flow[data-tone=signed] .ggt-steps [data-step=current] i { border:1px solid var(--stage-ink); color:var(--panel); background:var(--stage-ink); }
.ggt-steps i svg { width:10px; height:10px; stroke-width:3; }
.ggt-card-dates { display:grid; grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); gap:12px; }
.ggt-card-dates>div+div { border-inline-start:1px solid var(--line); padding-inline-start:12px; }
.ggt-card-dates dt { font-size:.8125rem; line-height:1.4; color:var(--muted); }
.ggt-card-dates dd { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:3px; font-size:.9375rem; font-variant-numeric:tabular-nums; font-weight:650; }
.ggt-date-empty { color:var(--muted); font-weight:500; }
.ggt-countdown { display:inline-flex; align-items:center; gap:4px; padding:3px 6px; font-size:.8125rem; line-height:1.25; border-radius:6px; font-weight:600; color:var(--muted); background:var(--design-subtle); white-space:nowrap; }
.ggt-countdown svg,.ggt-card-contacts svg { flex-shrink:0; width:14px; height:14px; }
.ggt-countdown[data-tone=open],.ggt-countdown[data-tone=sent] { color:#214d82; background:#e7f0fa; }
.ggt-countdown[data-tone=urgent] { color:#795000; background:#fff1c9; --signal-color:#9e6500; --pulse-duration:2.4s; }
.ggt-countdown[data-tone=late] { color:#9e2636; background:#fce5e8; --signal-color:#bd3045; --pulse-duration:1.8s; }
.ggt-countdown[data-tone=done] { color:#1c6444; background:#e1f2e9; }
.ggt-countdown:is([data-tone=urgent],[data-tone=late]) > svg { display:none; }
.ggt-countdown:is([data-tone=urgent],[data-tone=late])::before {
  content:""; flex:none; box-sizing:border-box; width:8px; height:8px; margin-inline:3px;
  border:1px solid currentColor; border-radius:50%; color:var(--signal-color); background:currentColor;
  box-shadow:0 0 0 2px color-mix(in srgb,currentColor 22%,transparent);
}
@keyframes ggt-deadline-pulse {
  0% { box-shadow:0 0 0 0 color-mix(in srgb,currentColor 60%,transparent); }
  75%,100% { box-shadow:0 0 0 4px transparent; }
}
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .ggt-countdown:is([data-tone=urgent],[data-tone=late])::before {
    animation:ggt-deadline-pulse var(--pulse-duration) ease-out infinite;
  }
}
.ggt-card-estimates { border-block-start:1px solid var(--line); padding-top:10px; }
.ggt-estimates-top h3 { font-size:.875rem; font-weight:650; }
.ggt-project-card .ggt-estimate-summary { border:0; padding:8px 0 0; gap:6px 9px; }
.ggt-project-card .ggt-estimate-heading,.ggt-project-card .ggt-estimate-pill { font-size:.75rem; }
.ggt-card-contacts { display:grid; gap:3px; margin-top:auto; border-top:1px solid var(--line); padding-top:9px; }
.ggt-card-contacts p { display:flex; gap:6px; align-items:baseline; font-size:.8125rem; line-height:1.4; color:var(--muted); overflow-wrap:anywhere; }
.ggt-card-contacts svg { align-self:flex-start; margin-top:2px; }
@media (max-width:360px) {
  .ggt-project-card .ggt-flow { padding:10px; }
  .ggt-project-card .ggt-steps { margin-inline:-4px; }
  .ggt-project-card .ggt-card-dates { gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (forced-colors:active) {
  .ggt-steps li::before { border-block-start:1px solid CanvasText; }
  .ggt-steps [aria-current=step] i { border-color:Highlight; }
}

/* Reserve three equal columns when they fit, including on partially filled rows. */
.content .project-module .records-grid:has(> .ggt-project-card),
.ggt-quote-grid {
  display:grid; align-items:stretch;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,max(20rem,calc((100% - 28px) / 3))),1fr));
  gap:14px;
}
.ggt-quote-grid>.ggt-quote-card {
  display:grid; grid-template-rows:subgrid; grid-row:span 13;
  row-gap:12px; min-width:0; padding:18px; text-align:start;
}
.content .record-card.work-card.ggt-project-card:is(:hover,:active), .ggt-quote-card:is(:hover,:active) { transform:none; }
.ggt-card-identity,.ggt-quote-card .ggt-flow,.ggt-card-dates,.ggt-card-dates>div,.ggt-card-contacts {
  display:grid; grid-row:span 2; grid-template-rows:subgrid; min-width:0; row-gap:3px;
}
.ggt-project-card .ggt-card-identity p { margin:0; align-self:start; }
.ggt-project-card .ggt-card-identity { grid-template-columns:minmax(0,1fr); }
.ggt-card-identity h2 > :is(.work-card-link,.ggt-open-quote) {
  display:block; width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.ggt-quote-card .ggt-flow { grid-row:span 3; row-gap:0; }
.ggt-flow-caption,.ggt-flow-title { align-self:start; }
.ggt-card-dates { align-items:stretch; }
.ggt-card-dates dt { align-self:start; }
.ggt-card-dates dd { margin:0; display:flex; align-items:flex-start; align-self:start; flex-direction:column; gap:4px; }
.ggt-card-estimates { row-gap:7px; }
.ggt-card-contacts { margin:0; align-content:start; }
/* Identical tracks keep file titles, quote milestones and dates aligned while paging. */
.content .project-module .records-grid:has(> [data-ggt-card]) { grid-auto-rows:1fr; }
.content .record-card.work-card[data-ggt-card] {
  display:grid; grid-template-rows:auto 1fr auto; min-width:0; min-height:0; align-self:stretch;
  padding:15px 16px 0; gap:9px; text-align:start; color:var(--text); container-type:inline-size;
  --pager-height:34px;
}
.ggt-file-header { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; }
.ggt-file-header .ggt-card-ref { flex-wrap:nowrap; height:1.8rem; }
.ggt-file-header .work-status { min-width:0; max-width:60%; }
.content .work-card .ggt-file-header h2 { margin:2px 0 0; font-size:1.1rem; font-weight:650; line-height:1.3; }
.ggt-file-header p { font-size:.875rem; color:var(--muted); line-height:1.35; }
.ggt-file-header :is(.work-card-link,p,.ggt-card-ref>span:first-child,.work-status>span),
.ggt-slide-link,.ggt-empty-title,.ggt-slide-head>span,.ggt-slide-phase>*,.ggt-slide-estimator>span,
.ggt-slide-due>span:first-child,.ggt-quote-slide .ggt-steps li>span {
  display:block; min-width:0; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.ggt-quote-panel { display:grid; grid-template-rows:1fr; min-width:0; position:relative; z-index:2; touch-action:pan-y pinch-zoom; }
.work-card .ggt-quote-slide {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:var(--pager-height) var(--pager-height) auto auto 1fr;
  padding:8px 12px 10px; border:0;
}
.ggt-slide-head { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.ggt-slide-name { display:flex; gap:8px; align-items:center; justify-content:space-between; min-width:0; }
.ggt-slide-name .ggt-slide-link { flex:1; }
.ggt-slide-actions { display:flex; align-items:center; gap:4px; flex:none; }
.ggt-slide-actions button { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:0 9px; border:1px solid var(--line); border-radius:7px; font:inherit; font-size:.8125rem; font-weight:650; cursor:pointer; }
.ggt-slide-actions .ggt-detail-trigger { width:30px; padding:0; color:var(--text); background:var(--panel-solid,var(--panel)); }
.ggt-detail-trigger svg { width:17px; height:17px; }
.ggt-slide-actions .ggt-slide-open { color:var(--text); background:var(--panel-solid,var(--panel)); }
.ggt-slide-actions button:is(:hover,:focus-visible) { border-color:var(--muted); }
.ggt-slide-head>span { font-size:.77rem; font-weight:600; color:var(--muted); }
.work-card :is(.ggt-slide-link,.ggt-empty-title) { box-sizing:border-box; width:100%; margin:1px 0 0; padding:0; border:0; background:none; font:inherit; font-size:.95rem; font-weight:650; color:var(--text); line-height:1.35; text-align:start; }
.ggt-slide-link { text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--text) 27%,transparent); text-underline-offset:3px; cursor:pointer; }
.ggt-slide-link:hover { text-decoration-color:currentColor; }
.ggt-quote-pager { display:inline-flex; flex:none; align-items:center; gap:1px; border:1px solid var(--line); border-radius:9px; background:var(--panel-solid,var(--panel)); }
.ggt-quote-pager button { display:grid; place-items:center; width:31px; height:calc(var(--pager-height) - 2px); padding:0; border:0; border-radius:7px; background:transparent; color:var(--text); cursor:pointer; }
.ggt-quote-pager button:hover,.ggt-file-open:hover,.ggt-detail-trigger:hover { background:var(--design-subtle); }
.ggt-quote-pager svg,.ggt-file-open svg { width:15px; height:15px; flex:none; }
.ggt-quote-pager>span { padding:0 2px; font-size:.78rem; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ggt-slide-phase { display:flex; gap:8px; align-items:baseline; min-width:0; margin-top:7px; color:var(--stage-ink); font-size:.875rem; line-height:1.45; height:1.45em; }
.ggt-slide-phase>span { font-size:.77rem; color:var(--muted); }
.work-card .ggt-quote-slide .ggt-steps { margin:7px -3px 10px; }
@media (prefers-reduced-motion:no-preference) {
  .ggt-quote-slide[data-slide-from] :is(.ggt-slide-link,.ggt-slide-phase,.ggt-steps,.ggt-slide-facts) { animation:ggt-quote-enter .16s ease-out; }
  .ggt-quote-slide[data-slide-from=next] { --slide-offset:8px; }
  .ggt-quote-slide[data-slide-from=previous] { --slide-offset:-8px; }
}
@keyframes ggt-quote-enter { from { transform:translateX(var(--slide-offset)); opacity:.65; } }
.ggt-slide-facts { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 12px; border-top:1px solid var(--line); padding-top:8px; }
.ggt-slide-due,.ggt-slide-estimator { min-width:0; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.ggt-slide-due { min-height:1.45rem; font-size:.8125rem; line-height:1.35; }
.ggt-slide-due>span:first-child,.ggt-slide-estimator { color:var(--muted); }
.ggt-slide-due strong { flex:none; font-size:.875rem; font-variant-numeric:tabular-nums; }
.ggt-slide-due .ggt-countdown { min-width:0; max-width:100%; }
.ggt-slide-due .ggt-countdown>span { overflow:hidden; text-overflow:ellipsis; }
.ggt-slide-estimator { justify-self:end; max-width:100%; font-size:.8rem; line-height:1.4; }
.ggt-slide-estimator svg { width:14px; height:14px; flex:none; }
.content .work-card .ggt-file-footer { padding:0; margin:0; display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:8px; min-height:43px; min-width:0; border-top:1px solid var(--line); }
.ggt-file-opened { display:flex; align-items:baseline; gap:5px; min-width:0; color:var(--muted); font-size:.8rem; line-height:1.35; white-space:nowrap; }
.ggt-file-opened time { color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
.ggt-file-open { position:relative; z-index:2; display:inline-flex; align-items:center; justify-content:center; gap:5px; flex:none; min-height:32px; padding:3px 4px; border:0; border-radius:6px; background:transparent; color:var(--text); font:inherit; font-weight:600; font-size:.8125rem; cursor:pointer; }
.ggt-slide-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.ggt-file-open:focus-visible,.ggt-quote-panel button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@container (max-width:27rem) {
  .ggt-slide-facts { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(1.45rem,auto) 1.12rem; }
  .ggt-slide-estimator { justify-self:start; }
}
@container (max-width:19rem) {
  .ggt-file-opened { flex-direction:column; align-items:start; gap:0; }
}
@media (pointer:coarse) {
  .content .record-card.work-card[data-ggt-card] { --pager-height:46px; }
  .ggt-quote-pager button { width:44px; }
  .ggt-file-open,.ggt-slide-actions button { min-height:44px; }
  .ggt-slide-actions .ggt-detail-trigger { width:44px; }
  .content .work-card .ggt-file-footer { min-height:46px; }
}
/* Quote preview in the project register. */
#overlay .modal-backdrop:has(.ggt-card-dialog-body) { align-items:center; justify-content:center; padding:clamp(8px,2vw,24px); }
#overlay .modal-backdrop > .modal:has(.ggt-card-dialog-body) {
  display:flex; flex-direction:column; align-self:center; margin:auto; box-sizing:border-box;
  width:min(70rem,100%); max-width:70rem; height:auto; min-height:0;
  max-height:calc(100dvh - clamp(16px,4vw,48px)); overflow:hidden;
}
#overlay .modal:has(.ggt-card-dialog-body)>header {
  flex:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:16px clamp(16px,2.5vw,32px); border-bottom:1px solid var(--line); background:var(--surface);
}
#overlay .modal:has(.ggt-card-dialog-body) #modal-title {
  display:flex; align-items:center; gap:14px; min-width:0; margin:0; color:var(--text); overflow:visible;
}
#overlay .modal:has(.ggt-card-dialog-body) #close-modal { flex:none; width:40px; height:40px; }
.ggt-dialog-doc-icon { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:12px; background:color-mix(in srgb,var(--accent) 9%,var(--surface)); color:var(--accent); }
.ggt-dialog-doc-icon svg { width:23px; height:23px; }
.ggt-dialog-identity { display:grid; min-width:0; gap:3px; }
.ggt-dialog-identity small,.ggt-dialog-file-ref { color:var(--muted); font-size:.8125rem; font-weight:600; line-height:1.4; font-variant-numeric:tabular-nums; }
.ggt-dialog-identity strong { display:block; font-size:clamp(1.16rem,2vw,1.55rem); line-height:1.22; letter-spacing:-.02em; overflow-wrap:anywhere; }
.ggt-card-dialog-body {
  min-height:0; display:grid; align-content:start; gap:16px; padding:18px clamp(16px,2.5vw,32px) 24px;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; color:var(--text);
}
.ggt-card-dialog-body::-webkit-scrollbar { width:7px; }
.ggt-card-dialog-body::-webkit-scrollbar-thumb { background:color-mix(in srgb,var(--muted) 45%,transparent); border-radius:10px; }
.ggt-card-dialog-body::-webkit-scrollbar-button { display:none; width:0; height:0; }
@supports not selector(::-webkit-scrollbar) { .ggt-card-dialog-body { scrollbar-width:thin; } }
.ggt-dialog-progress .ggt-flow { padding:14px 20px; }
.ggt-detail-highlights { display:flex; justify-content:space-between; align-items:start; gap:12px 20px; }
.ggt-detail-highlights>div { min-width:0; }
.ggt-detail-highlights>div>span { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.875rem; line-height:1.4; }
.ggt-detail-highlights svg,.ggt-detail-signed svg,.ggt-detail-address svg { flex:none; width:16px; height:16px; }
.ggt-detail-highlights strong { display:block; margin-top:2px; font-size:1.08rem; line-height:1.35; font-weight:650; color:var(--stage-ink); overflow-wrap:anywhere; }
.ggt-detail-due { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 8px; }
.ggt-detail-due strong { font-variant-numeric:tabular-nums; color:var(--text); }
.ggt-dialog-progress .ggt-steps { margin:16px 0 0; }
.ggt-dialog-columns,.ggt-estimate-teams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ggt-dialog-section { min-width:0; }
.ggt-dialog-columns>.ggt-dialog-section { padding:16px 20px; border:1px solid var(--line); border-radius:12px; }
.ggt-card-dialog-body .ggt-dialog-section h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:1.05rem; font-weight:650; line-height:1.4; }
.ggt-dialog-section h3 svg { width:19px; height:19px; flex:none; color:var(--muted); }
.ggt-detail-section-head,.ggt-estimate-team h4 { display:flex; align-items:baseline; justify-content:space-between; gap:4px 10px; flex-wrap:wrap; }
.ggt-dialog-file-ref { overflow-wrap:anywhere; }
.ggt-detail-file-name { margin:12px 0 0; font-size:1.02rem; line-height:1.35; font-weight:650; overflow-wrap:anywhere; }
.ggt-detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; margin:14px 0 0; }
.ggt-detail-people,.ggt-project-tail { border-top:1px solid var(--line); margin-top:14px; padding-top:12px; }
.ggt-detail-facts dt,.ggt-detail-address dt,.ggt-detail-history dt { color:var(--muted); font-size:.875rem; line-height:1.35; overflow-wrap:anywhere; }
.ggt-detail-facts dd,.ggt-detail-address dd,.ggt-detail-history dd { margin:3px 0 0; font-size:.96rem; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.ggt-detail-address,.ggt-detail-signed { display:flex; align-items:baseline; gap:6px; }
.ggt-detail-address dl { margin:0; }
.ggt-detail-address>svg,.ggt-detail-signed>svg { align-self:flex-start; margin-top:2px; color:var(--muted); }
.ggt-detail-address dd { font-weight:500; }
.ggt-detail-signed { flex-wrap:wrap; margin-top:8px; font-size:.8125rem; color:var(--muted); }
.ggt-detail-signed b { color:var(--text); font-variant-numeric:tabular-nums; }
.ggt-detail-history { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.ggt-detail-history h4 { display:flex; align-items:center; gap:7px; margin:0; font-size:.94rem; font-weight:650; }
.ggt-detail-history h4 svg { width:16px; height:16px; color:var(--muted); }
.ggt-detail-history dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:12px; margin:10px 0 0; }
.ggt-estimate-teams { margin-top:10px; }
.ggt-estimate-team { min-width:0; padding:12px 16px; background:color-mix(in srgb,var(--muted) 5%,var(--surface)); border-radius:10px; }
.ggt-estimate-team h4 { margin:0; font-size:.94rem; line-height:1.45; font-weight:650; }
.ggt-estimate-team h4 span { color:var(--muted); font-variant-numeric:tabular-nums; }
.ggt-estimate-stages { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0 0; }
.ggt-estimate-stages>div+div { border-inline-start:1px solid var(--line); padding-inline-start:10px; }
.ggt-estimate-stages dt { color:var(--muted); font-size:.875rem; line-height:1.4; }
.ggt-estimate-stages dd { margin:1px 0 0; font-size:1.2rem; font-weight:650; line-height:1.25; font-variant-numeric:tabular-nums; color:var(--text); }
.ggt-estimate-stages [data-mode=sent] dd { color:light-dark(#235789,#a5cafa); }
.ggt-estimate-stages [data-mode=received] dd { color:light-dark(#206045,#a0dcbf); }
.ggt-estimate-stages [data-mode=unsent] dd { color:light-dark(#7d500c,#f1c784); }
.ggt-estimate-stages [data-mode=zero] dd { color:var(--muted); font-weight:500; }
.ggt-team-empty,.ggt-team-note { margin:10px 0 0; color:var(--muted); font-size:.875rem; line-height:1.45; }
@media (max-width:760px) {
  .ggt-dialog-columns,.ggt-estimate-teams { grid-template-columns:minmax(0,1fr); gap:12px; }
  #overlay .modal:has(.ggt-card-dialog-body)>header { padding:12px 16px; }
  #overlay .modal:has(.ggt-card-dialog-body) #close-modal { width:44px; height:44px; }
  .ggt-card-dialog-body { gap:14px; padding:12px 14px 18px; }
  .ggt-dialog-columns>.ggt-dialog-section,.ggt-dialog-progress .ggt-flow { padding:12px 14px; }
  .ggt-dialog-progress .ggt-steps { margin:12px -5px 0; }
  .ggt-detail-highlights { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .ggt-detail-facts { gap:12px; }
}
@media (max-width:360px) {
  .ggt-dialog-doc-icon { display:none; }
  .ggt-detail-facts { grid-template-columns:1fr; gap:10px; }
}
.ggt-quote-grid { --text:var(--ink,#252831); container-type:normal; }
.ggt-quote-grid>.ggt-quote-card { grid-row:span 10; position:relative; min-width:0; border:1px solid var(--line); border-radius:18px; background:var(--panel-solid,var(--panel)); color:var(--text); }
.ggt-quote-card .ggt-card-identity h2 { margin:0; font-size:1.18rem; font-weight:650; line-height:1.25; overflow-wrap:anywhere; }
.ggt-open-quote { padding:0; text-align:inherit; font:inherit; overflow-wrap:anywhere; color:inherit; }
.ggt-open-quote::after { position:absolute; content:""; inset:0; z-index:1; border-radius:18px; }
.ggt-open-quote:focus-visible::after { outline:2px solid var(--accent); outline-offset:2px; }
/* The two readouts share a baseline; only explicit detail controls sit above the card link. */
.ggt-quote-metrics {
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); align-items:stretch;
  padding:12px; gap:10px; border:1px solid var(--line); border-radius:12px;
  background:color-mix(in srgb,var(--muted) 5%,var(--panel-solid,var(--panel)));
}
.ggt-estimate-readout,.ggt-quote-price { min-width:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:4px; }
.ggt-estimate-readout>span,.ggt-quote-price>span,.ggt-file-identity>span { color:var(--muted); font-size:.8rem; line-height:1.35; font-weight:500; }
.ggt-estimate-readout>strong { font-size:.9rem; line-height:1.35; overflow-wrap:anywhere; color:var(--ink); }
.ggt-estimate-readout [data-mode=sent] { color:light-dark(#225992,#a6ccff); }
.ggt-estimate-readout [data-mode=received] { color:light-dark(#226444,#a4dcbc); }
.ggt-estimate-readout [data-mode=unsent] { color:light-dark(#855600,#f4ce83); }
.ggt-estimate-readout [data-mode=unknown] { color:var(--muted); }
.ggt-quote-price,.ggt-linked-file { position:relative; z-index:2; color:inherit; font:inherit; }
.ggt-quote-price { align-items:flex-end; text-align:end; padding:0 0 0 10px; border-inline-start:1px solid var(--line); }
.ggt-quote-price>strong { max-width:100%; font-weight:700; font-size:1.16rem; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ggt-quote-price svg,.ggt-file-count svg { width:13px; height:13px; flex:none; }
.ggt-quote-price:hover>strong { text-decoration:underline; text-underline-offset:3px; }
.ggt-linked-file { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:9px; align-items:center; min-width:0; width:100%; text-align:start; padding:8px 2px; border-radius:8px; }
.ggt-file-icon { box-sizing:content-box; width:16px; height:16px; padding:8px; color:var(--muted); background:color-mix(in srgb,var(--muted) 9%,transparent); border-radius:9px; }
.ggt-file-identity { min-width:0; display:grid; gap:2px; }
.ggt-file-identity>strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; font-size:.9rem; }
.ggt-file-count { display:inline-flex; align-items:center; gap:6px; color:var(--ink); font-weight:600; font-size:.8rem; }
.ggt-linked-file:hover { background:color-mix(in srgb,var(--muted) 7%,transparent); }
.ggt-quote-grid :is(.ggt-linked-file,.ggt-quote-price):focus-visible,.ggt-quote-popup button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

html.ggt-quote-popup-gutter { scrollbar-gutter:stable; }
.ggt-quote-popup {
  position:fixed; inset:0; margin:auto; box-sizing:border-box;
  width:min(35rem,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px);
  padding:0; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:var(--panel-solid,#fff);
  font:inherit; text-align:start; box-shadow:0 22px 76px #10213936;
}
.ggt-quote-popup[open] { display:flex; flex-direction:column; overflow:hidden; }
.ggt-quote-popup::backdrop { background:#111b2b66; backdrop-filter:blur(3px); }
.ggt-quote-popup>header { display:flex; gap:12px; justify-content:space-between; align-items:flex-start; border-bottom:1px solid var(--line); padding:18px 20px; }
.ggt-quote-popup>header>div { min-width:0; }
.ggt-quote-popup>header span,.ggt-dialog-quote-name small,.ggt-popup-facts dt,.ggt-popup-price dt { font-size:.82rem; color:var(--muted); }
.ggt-quote-popup h2 { margin:2px 0 0; font-size:1.17rem; line-height:1.35; font-weight:650; overflow-wrap:anywhere; max-height:27dvh; overflow-y:auto; }
.ggt-quote-popup h2:focus { outline:0; }
.ggt-quote-popup>header button { flex:none; display:grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid var(--line); border-radius:50%; color:var(--ink); }
.ggt-quote-popup>header svg { width:17px; height:17px; }
.ggt-quote-popup-body { display:grid; gap:14px; padding:16px 20px 20px; overflow:auto; overscroll-behavior:contain; }
.ggt-quote-popup-body h3 { margin:0; font-size:.91rem; font-weight:650; }
.ggt-dialog-quotes { display:grid; list-style:none; margin:0; padding:0; }
.ggt-dialog-quotes li+li { border-top:1px solid var(--line); }
.ggt-dialog-quotes button { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:10px; text-align:start; padding:10px 4px; border-radius:6px; color:inherit; }
.ggt-dialog-quotes button:hover,.ggt-quote-popup>header button:hover { background:color-mix(in srgb,var(--muted) 8%,transparent); }
.ggt-dialog-quotes button>svg,.ggt-back-to-file svg { width:14px; height:14px; color:var(--muted); align-self:center; }
.ggt-dialog-quote-ref { padding:3px 7px; border-radius:6px; background:color-mix(in srgb,var(--muted) 10%,transparent); font-size:.8rem; font-weight:650; font-variant-numeric:tabular-nums; }
.ggt-dialog-quote-name { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.ggt-dialog-quote-name strong { font-size:.94rem; font-weight:650; }
.ggt-dialog-quote-name em { font-size:.78rem; font-style:normal; font-weight:600; color:var(--accent); }
.ggt-back-to-file { justify-self:start; display:flex; align-items:center; gap:6px; padding:4px 0; color:var(--ink); text-decoration:underline; text-underline-offset:3px; font-size:.84rem; }
.ggt-popup-facts,.ggt-popup-price { display:grid; gap:8px; margin:0; }
.ggt-popup-facts>div,.ggt-popup-price>div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.55fr); gap:12px; align-items:baseline; }
.ggt-popup-facts dd,.ggt-popup-price dd { margin:0; font-size:.9rem; font-weight:600; overflow-wrap:anywhere; }
.ggt-popup-price { padding:12px; border:1px solid var(--line); border-radius:10px; }
.ggt-popup-price dd { text-align:end; font-variant-numeric:tabular-nums; }
.ggt-popup-price>div:last-child { padding-top:8px; border-top:1px solid var(--line); }
.ggt-popup-price>div:last-child :is(dt,dd) { color:var(--ink); font-weight:650; }
.ggt-workspace-action { justify-self:end; padding:8px 14px; border-radius:9px; background:var(--ink); color:var(--panel-solid,#fff); font-size:.87rem; font-weight:600; }
html[data-theme=dark] :is(.ggt-quote-metrics,.ggt-quote-popup) { color-scheme:dark; }

.work-card .ggt-flow.ggt-quote-slide {
  background:color-mix(in srgb,var(--stage-ink) 8%,var(--panel-solid,var(--panel)));
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--stage-ink) 83%,var(--line));
}
.ggt-slide-phase>i { align-self:center; flex:none; }
.ggt-slide-phase>i svg { display:block; width:14px; height:14px; }

.ggt-search-top { display:flex; align-items:center; gap:14px; min-width:0; }
.ggt-search-top .input-wrap { flex:1 1 18rem; }
.ggt-deadline-tabs { display:flex; align-items:stretch; gap:3px; padding:3px; height:44px; flex:none; border:1px solid var(--line); border-radius:12px; background:var(--design-subtle); }
.ggt-deadline-tabs button {
  --signal:var(--muted); display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:0;
  padding:0 12px; font:inherit; font-size:.86rem; font-weight:600; color:var(--text); white-space:nowrap;
  background:transparent; border:1px solid transparent; border-radius:8px; cursor:pointer;
}
.ggt-deadline-tabs [data-deadline-filter=late] { --signal:light-dark(#9d2639,#ffaabc); }
.ggt-deadline-tabs [data-deadline-filter=today] { --signal:light-dark(#805209,#f5cb78); }
.ggt-deadline-tabs [data-deadline-filter=week] { --signal:light-dark(#265b95,#aacfff); }
.ggt-deadline-tabs b { min-width:1.55em; padding:1px 5px; border-radius:6px; background:color-mix(in srgb,var(--signal) 12%,var(--surface)); color:var(--signal); font-variant-numeric:tabular-nums; text-align:center; }
.ggt-deadline-tabs button:hover { background:var(--panel-solid,var(--panel)); }
.ggt-deadline-tabs button[aria-pressed=true] { background:var(--panel-solid,var(--panel)); border-color:var(--signal); color:var(--signal); }
.ggt-register-search .input-wrap:focus-within { outline:2px solid var(--ui-focus,var(--list-focus)); outline-offset:1px; }
.ggt-register-search :is(.ggt-deadline-tabs button,.ggt-legend-trigger):focus-visible { outline:2px solid var(--ui-focus,var(--list-focus)); outline-offset:-2px; }
.ggt-legend-trigger { display:inline-grid; place-items:center; width:38px; height:38px; flex:none; color:var(--muted); background:var(--list-control); border:1px solid var(--list-outline); border-radius:10px; cursor:pointer; }
.ggt-legend-trigger:hover { color:var(--text); border-color:var(--muted); }
.ggt-legend-trigger svg { width:17px; height:17px; }
.ggt-register-search .work-toolbar-controls { color-scheme:inherit; }
html[data-theme=dark] .ggt-register-search { color-scheme:dark; }
.ggt-colour-guide {
  --ui-button-radius:7px; box-sizing:border-box; position:fixed; inset:auto; margin:0;
  width:min(26rem,calc(100vw - 16px)); padding:0; overflow:auto; overscroll-behavior:contain;
  background:var(--panel-solid,var(--surface)); color:var(--text); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 8px 28px #10182828; font-family:inherit;
}
.ggt-colour-guide::backdrop { background:transparent; backdrop-filter:none; pointer-events:none; }
.ggt-colour-guide>header { display:flex; align-items:center; justify-content:space-between; padding:6px 9px 6px 14px; border-bottom:1px solid var(--line); }
.ggt-colour-guide>header strong { font-size:.94rem; font-weight:650; line-height:1.3; }
.ggt-colour-guide>header button { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; color:var(--muted); background:transparent; cursor:pointer; }
.ggt-colour-guide>header button:hover { background:var(--design-subtle); }
.ggt-colour-guide>header svg { width:16px; height:16px; }
.ggt-guide-sections { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:10px 14px 14px; }
.ggt-colour-guide h3 { margin:0 0 6px; color:var(--muted); font-size:.81rem; font-weight:650; line-height:1.4; }
.ggt-colour-guide ul { list-style:none; padding:0; margin:0; display:grid; gap:4px; }
.ggt-colour-guide li { display:flex; align-items:center; gap:6px; min-height:21px; font-size:.85rem; line-height:1.28; }
.ggt-colour-guide li i { display:grid; place-items:center; flex:none; width:21px; height:21px; border-radius:5px; background:color-mix(in srgb,var(--stage-ink) 11%,var(--surface)); color:var(--stage-ink); }
.ggt-colour-guide li svg { width:13px; height:13px; }
@media (max-width:450px) {
  .ggt-colour-guide { width:min(20rem,calc(100vw - 16px)); }
  .ggt-guide-sections { gap:10px; padding:10px; }
}
@media (min-width:801px) and (max-width:1180px) {
  .ggt-deadline-tabs button { padding:0 7px; gap:5px; }
}
@media (max-width:800px) {
  .content .project-module .work-toolbar.ggt-register-search {
    display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:0 6px; align-items:center;
    grid-template-areas:"search filters views" "shortcuts shortcuts shortcuts" "count count guide";
  }
  .content .ggt-register-search :is(.ggt-search-top,.work-filter-row,.work-toolbar-controls) { display:contents; }
  .content .ggt-register-search .input-wrap { grid-area:search; }
  .content .ggt-register-search .work-mobile-filters { grid-area:filters; width:42px; padding:0; position:relative; justify-content:center; }
  .ggt-register-search .work-mobile-filters>span:first-of-type,.ggt-register-search .view-switch .ggt-view-label { position:absolute; clip-path:inset(50%); height:1px; width:1px; overflow:hidden; }
  .ggt-register-search .work-filter-count { position:absolute; top:0; right:1px; }
  .content .ggt-register-search .view-switch { grid-area:views; padding:2px; }
  .content .ggt-register-search .view-switch button { flex:none; width:38px; padding:0; }
  .ggt-register-search .ggt-deadline-tabs { grid-area:shortcuts; margin-top:10px; height:42px; width:100%; }
  .ggt-register-search .ggt-deadline-tabs button { flex:1 1 0; gap:5px; padding:0 4px; }
  .content .project-module .ggt-register-search #work-count { grid-area:count; margin-top:8px; line-height:18px; }
  .ggt-register-search .ggt-legend-trigger { grid-area:guide; justify-self:end; align-self:end; width:32px; height:24px; border:0; background:transparent; }
  .content .ggt-register-search .work-filter-fields { grid-column:1/-1; grid-row:4; margin-top:10px; }
}
@media (max-width:420px) {
  .ggt-register-search .ggt-deadline-tabs button { font-size:.78rem; gap:4px; }
}
@media (max-width:360px) {
  .content .project-module .work-toolbar.ggt-register-search {
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"search search search" "shortcuts shortcuts shortcuts" "filters views guide" "count count count";
  }
  .content .ggt-register-search :is(.work-mobile-filters,.view-switch) { margin-top:8px; }
  .ggt-register-search .ggt-legend-trigger { align-self:center; margin-top:8px; height:40px; }
  .content .ggt-register-search .work-filter-fields { grid-row:5; }
}

.ggt-file-signals { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-width:0; max-width:80%; }
.ggt-file-header .ggt-file-signals .work-status { max-width:none; min-width:0; align-self:center; }
.ggt-file-signals .ggt-deadline-slot { display:flex; min-width:0; }
.ggt-file-signals .ggt-deadline-slot:empty { display:none; }
.ggt-file-signals .ggt-countdown {
  display:flex; align-items:center; gap:4px; min-width:0; min-height:24px; padding:2px 8px;
  border:1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius:999px;
  font-size:.78rem; line-height:1.3; font-weight:650; font-variant-numeric:tabular-nums;
}
.ggt-file-signals .ggt-countdown>span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ggt-file-signals .ggt-countdown[data-tone=sent] { color:light-dark(#11696d,#9fe3e1); background:light-dark(#e0f2f1,#173a3d); }
.ggt-file-signals .ggt-countdown[data-tone=open] { color:light-dark(#21558c,#aacfff); background:light-dark(#e7f0fb,#20364b); }
.ggt-file-signals .ggt-countdown[data-tone=urgent] { color:light-dark(#815200,#ffdc92); background:light-dark(#fff0c9,#46381e); }
.ggt-file-signals .ggt-countdown[data-tone=late] { color:light-dark(#a02539,#ffc1c9); background:light-dark(#fce4e8,#472831); }
.ggt-file-signals .ggt-countdown[data-tone=done] { color:light-dark(#226644,#a8e6bb); background:light-dark(#e1f3e7,#233b30); }
html[data-theme=dark] .ggt-file-signals { color-scheme:dark; }
@keyframes ggt-capsule-pulse { 0%,100% { box-shadow:0 0 0 0 transparent; } 50% { box-shadow:0 0 0 3px color-mix(in srgb,currentColor 25%,transparent); } }
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .ggt-file-signals .ggt-countdown:is([data-tone=late],[data-tone=urgent]) { animation:ggt-capsule-pulse var(--pulse-duration,2.3s) ease-in-out infinite; }
  .ggt-file-signals .ggt-countdown::before { animation:none; }
}
@container (max-width:22rem) {
  .ggt-file-header .ggt-file-year { display:none; }
}
@container (max-width:19rem) {
  .ggt-file-header .ggt-file-kind { display:none; }
  .ggt-file-signals { max-width:calc(100% - 3rem); gap:4px; }
}

.ggt-result-short { display:none; }
@media (min-width:801px) and (max-width:1510px) {
  .content .ggt-register-search .work-filter-row { column-gap:8px; }
  .ggt-result-short { display:inline; }
  .ggt-result-long { position:absolute; clip-path:inset(50%); height:1px; width:1px; overflow:hidden; }
}

.ggt-filter-short { display:none; }
@media (max-width:450px) {
  .ggt-deadline-tabs [data-deadline-filter=week] .ggt-filter-label { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .ggt-deadline-tabs .ggt-filter-short { display:inline; }
}

/* Project register toolbar — shared geometry and typography for both rows. */
.content .project-module .ggt-register-search {
  --control-h:44px; --ui-button-radius:9px; --register-border:var(--line);
  --register-bg:var(--panel-solid,var(--surface)); --register-type:.875rem;
  container:register-controls / inline-size; font-family:inherit; font-size:var(--register-type);
}
.ggt-register-search .ggt-search-top { gap:8px; }
.content .ggt-register-search :is(.input-wrap,.work-filter-fields>label,.toolbar-reset,.view-switch,.ggt-legend-trigger,.work-mobile-filters),
.ggt-register-search .ggt-deadline-tabs button {
  box-sizing:border-box; min-height:var(--control-h); height:var(--control-h); border-radius:var(--ui-button-radius);
  border:1px solid var(--register-border); background:var(--register-bg); color:var(--text); box-shadow:none;
}
.content .ggt-register-search :is(.input-wrap input,.work-filter-fields>label>span,.work-filter-fields select,.toolbar-reset,.view-switch button,.view-switch button>span,.ggt-deadline-tabs button,.work-mobile-filters,#work-count) {
  font-family:inherit; font-size:var(--register-type); font-weight:500; letter-spacing:normal; line-height:1.25;
}
.content .ggt-register-search .input-wrap input { height:100%; min-height:0; }
.content .ggt-register-search .work-filter-fields>label { gap:7px; padding-inline:10px; }
.content .ggt-register-search .work-filter-fields>label>span,.content .ggt-register-search #work-count { color:var(--muted); }
.content .ggt-register-search .work-filter-fields select { min-width:0; }
.ggt-register-search .ggt-deadline-tabs { height:var(--control-h); min-width:0; background:none; border:0; padding:0; gap:8px; }
.content .ggt-register-search .ggt-deadline-tabs button { gap:8px; padding-inline:12px; }
.ggt-register-search .ggt-deadline-tabs b { min-width:22px; height:22px; display:inline-grid; place-items:center; padding:0 4px; font-size:var(--register-type); font-weight:650; }
.content .ggt-register-search .ggt-deadline-tabs button[aria-pressed=true] { border-color:var(--signal); color:var(--signal); background:color-mix(in srgb,var(--signal) 7%,var(--register-bg)); }
.content .ggt-register-search .ggt-legend-trigger { width:var(--control-h); border-radius:var(--ui-button-radius); }
.content .ggt-register-search .toolbar-reset { padding-inline:12px; gap:7px; }
.content .ggt-register-search .view-switch { padding:3px; gap:2px; }
.content .ggt-register-search .view-switch button { --ui-button-radius:6px; min-height:0; height:100%; padding-inline:10px; box-shadow:none; }
.content .ggt-register-search .view-switch button.active { background:var(--design-subtle); color:var(--text); font-weight:650; }
.content .ggt-register-search .view-switch button.active>span { font-weight:650; }
.content .ggt-register-search :is(.input-wrap,.view-switch,.toolbar-reset,.ggt-legend-trigger,.work-mobile-filters) svg { width:16px; height:16px; flex:none; }
.content .ggt-register-search :is(.toolbar-reset,.ggt-legend-trigger,.ggt-deadline-tabs button,.work-filter-fields>label):hover { border-color:var(--muted); }
@media (min-width:801px) {
  .content .ggt-register-search .work-filter-row { column-gap:8px; }
  .content .ggt-register-search #work-count { margin-left:auto; order:1; padding-inline:4px; }
  .content .ggt-register-search .view-switch { margin-left:0; order:2; }
  @container register-controls (max-width:47rem) {
    .content .ggt-register-search .work-filter-row { row-gap:8px; }
  }
  @container register-controls (min-width:69rem) {
    .ggt-register-search .ggt-deadline-tabs button { min-width:8rem; justify-content:space-between; }
  }
  @container register-controls (min-width:47rem) and (max-width:60rem) {
    .content .ggt-register-search .work-filter-fields>label,.content .ggt-register-search .toolbar-reset { padding-inline:8px; }
    .content .ggt-register-search .view-switch button { padding-inline:6px; }
  }
}
@media (max-width:800px) {
  .content .ggt-register-search .input-wrap { height:48px; min-height:48px; }
  .content .ggt-register-search .input-wrap input { font-size:1rem; }
  .content .ggt-register-search .ggt-deadline-tabs,.content .ggt-register-search .ggt-deadline-tabs button { --control-h:42px; }
  .content .ggt-register-search .ggt-deadline-tabs button { padding-inline:3px; gap:4px; }
  .content .ggt-register-search .ggt-legend-trigger { width:28px; height:24px; min-height:24px; }
  .content .ggt-register-search .work-filter-fields>label { flex-direction:row; align-items:center; min-height:44px; height:44px; }
  .content .ggt-register-search .work-filter-fields select { width:auto; }
  .content .ggt-register-search .view-switch { min-height:42px; height:42px; }
  .content .ggt-register-search #work-count { line-height:18px; }
}
@media (max-width:360px) {
 .content .ggt-register-search .ggt-legend-trigger { height:42px; width:42px; }
}

/* Each file keeps one row as the user pages through its quotes. */
.ggt-register-table-wrap { container:project-register / inline-size; border:1px solid var(--line); border-radius:14px; background:var(--panel-solid,var(--surface)); overflow:hidden; }
.content .ggt-project-table { display:table; width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; font:inherit; color:var(--text); }
.content .ggt-project-table thead th {
  padding:12px; text-align:start; text-transform:none; letter-spacing:normal; font-size:.84rem; font-weight:600;
  color:var(--muted); background:var(--design-subtle); border:0; border-bottom:1px solid var(--line);
}
.ggt-project-table thead th:nth-child(1) { width:23%; }
.ggt-project-table thead th:nth-child(2) { width:21%; }
.ggt-project-table thead th:nth-child(3) { width:26%; }
.ggt-project-table thead th:nth-child(4) { width:16%; }
.ggt-project-table thead th:nth-child(5) { width:14%; }
.content .ggt-project-table tbody :is(td,th) {
  height:auto; padding:10px 12px; border:0; border-bottom:1px solid var(--line); background:transparent;
  text-align:start; vertical-align:middle; color:var(--text); font-weight:400; text-transform:none; letter-spacing:normal;
}
.content .ggt-project-table tbody tr:last-child>:is(td,th) { border-bottom:0; }
.ggt-project-table tbody tr:hover { background:color-mix(in srgb,var(--muted) 3%,transparent); }
.ggt-project-table small,.ggt-r-client,.ggt-r-opened,.ggt-r-empty { display:block; color:var(--muted); font-size:.8125rem; line-height:1.4; }
.ggt-project-table small { font-variant-numeric:tabular-nums; font-weight:600; }
.ggt-r-project>:is(a,small,span),.ggt-r-quote .ggt-slide-link,.ggt-r-quote-ref small,.ggt-r-quote .ggt-empty-title { display:block; min-width:0; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ggt-r-project .ggt-row-project-link,.ggt-r-quote .ggt-slide-link { padding:0; border:0; background:none; margin:3px 0; font:inherit; font-size:.94rem; line-height:1.3; font-weight:650; color:var(--text); text-align:start; text-decoration:none; cursor:pointer; }
.ggt-r-project a:hover,.ggt-r-quote .ggt-slide-link:hover { text-decoration:underline; text-underline-offset:3px; }
.ggt-r-opened { margin-top:3px; font-variant-numeric:tabular-nums; }
.ggt-r-quote-ref { display:flex; align-items:center; justify-content:space-between; gap:5px; min-width:0; }
.ggt-r-quote .ggt-slide-estimator { justify-self:start; justify-content:flex-start; font-size:.8125rem; }
.ggt-project-table .ggt-quote-pager { --pager-height:28px; }
.ggt-project-table .ggt-quote-pager button { width:26px; }
.ggt-r-progress .ggt-slide-phase { margin:0; height:auto; flex-wrap:wrap; align-items:center; gap:3px 6px; }
.ggt-r-progress .ggt-slide-phase>span { flex-basis:100%; }
.ggt-project-table .ggt-steps { margin:7px 0 0; }
.ggt-project-table .ggt-steps li { grid-template-columns:minmax(0,1fr); }
.ggt-project-table .ggt-steps li>span { max-width:calc(100% - 4px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ggt-r-deadline .ggt-file-signals { justify-content:flex-start; max-width:none; flex-wrap:wrap; gap:4px; }
.ggt-r-deadline .ggt-slide-due { margin-top:4px; flex-wrap:wrap; gap:2px 5px; }
.ggt-r-actions .ggt-slide-actions { flex-wrap:wrap; }
.ggt-r-actions .ggt-file-open { margin-top:4px; }
.ggt-r-actions button { --ui-button-radius:7px; }
.ggt-project-table :is(button,a):focus-visible { outline:2px solid var(--ui-focus,var(--accent)); outline-offset:1px; }
@container project-register (max-width:66rem) {
  .content .ggt-project-table,.ggt-project-table tbody { display:block; }
  .ggt-project-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .ggt-project-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.72fr); grid-template-areas:"file quote due" "file progress actions"; gap:8px 18px; padding:14px 16px; }
  .ggt-project-table tbody tr+tr { border-top:1px solid var(--line); }
  .content .ggt-project-table tbody tr>:is(th,td) { display:block; min-width:0; padding:0; border:0; }
  .ggt-r-project { grid-area:file; }.ggt-r-quote { grid-area:quote; }.ggt-r-progress { grid-area:progress; }.ggt-r-deadline { grid-area:due; }.ggt-r-actions { grid-area:actions; }
}
@container project-register (max-width:38rem) {
  .ggt-project-table tbody tr { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"file due" "quote quote" "progress progress" "actions actions"; gap:10px; padding:14px; }
  .ggt-r-deadline { max-width:9rem; }
  .ggt-r-deadline .ggt-file-signals { flex-direction:column; align-items:flex-end; }
  .ggt-r-deadline .ggt-slide-due { justify-content:flex-end; }
  .content .ggt-project-table .ggt-r-quote { padding-top:9px; border-top:1px solid var(--line); }
  .ggt-r-actions { display:flex!important; align-items:center; justify-content:space-between; gap:6px; }
  .ggt-r-actions .ggt-file-open { margin-top:0; }
  .ggt-project-table .ggt-quote-pager { --pager-height:38px; }
  .ggt-project-table .ggt-quote-pager button { width:36px; }
}

/* The field supplies the border; the select supplies a single, unframed chevron. */
.content .ggt-register-search .work-filter-fields select:not([multiple]) {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23768190' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-size:14px!important; background-position:right center!important; padding-right:20px!important;
}
@media (max-width:800px) {
 .content .project-module .ggt-register-search :is(.view-switch,.work-mobile-filters) { height:42px; min-height:42px; }
 .content .project-module .ggt-register-search .ggt-legend-trigger { height:24px; min-height:24px; }
}
@media (max-width:360px) {
 .content .project-module .ggt-register-search .ggt-legend-trigger { height:42px; min-height:42px; }
}
