/* Office controls share one quiet visual language; field screens keep their own layout. */
.office-shell {
  --office-surface: #13222c;
  --office-border: #2c414c;
  --office-muted: #9aafb9;
  --office-accent: #a5e8ca;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-top: 30px;
}
.office-shell h1 { letter-spacing: -.7px; }
.office-shell h2 { font-size: 17px; font-weight: 600; letter-spacing: -.25px; }
.office-shell .page-header,.office-shell .office-header { gap: 16px; margin-bottom: 26px; }
.office-shell .page-header h1,.office-shell .office-header h1 { font-size: 27px; font-weight: 600; margin: 0; }
.office-shell .page-header-title { min-width: 0; }
.office-shell .page-header-title p { margin: 5px 0 0; color: var(--office-muted); }
.office-shell .page-back { background: #12212b; border-color: var(--office-border); border-radius: 12px; }
.office-shell .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.office-shell .page-back .ui-icon { width: 21px; height: 21px; }
.office-shell .settings-card,.office-shell .office-panel { padding: 24px; border: 1px solid var(--office-border); border-radius: 16px; background: var(--office-surface); }
.office-shell .settings-card h2,.office-shell .office-panel h2 { margin: 0 0 20px; }
.office-shell .settings-grid { gap: 18px; align-items: start; }
.office-shell .settings-card form { margin-bottom: 0; }
.office-shell button,.office-shell .button-link,.office-shell .office-action,
.office-shell .plan-primary,.office-shell .plan-secondary,.office-shell .plan-danger {
  min-height: 42px; border-radius: 10px; font-family: inherit; font-size: 13px;
  font-weight: 550; line-height: 1.35; gap: 8px; transition: background-color .15s;
}
.office-shell :is(.job-create button,.job-rename button,.quality-card button,.user-form button:not(.secondary),.password-form button,.settings-card form > button:not(.secondary),.office-login button,.selection-bar button),
.office-shell .plan-primary { background: #93dfbe; border-color: #93dfbe; color: #103a2d; }
.office-shell .office-action,.office-shell .button-link,.office-shell .office-icon-nav a,
.office-shell button.secondary,.office-shell .plan-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #192d38; border: 1px solid #354d59; color: #d2e2e8;
  padding: 10px 13px; text-decoration: none; margin: 0;
}
.office-shell .office-action:hover,.office-shell .button-link:hover,.office-shell .office-icon-nav a:hover,
.office-shell button.secondary:hover,.office-shell .plan-secondary:hover { background: #213a46; border-color: #597682; }
.office-shell button:disabled { cursor: default; }
.office-shell :is(button,a,summary,input,select,textarea):focus-visible { outline: 2px solid #a5e8ca; outline-offset: 3px; }
.office-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),
.office-shell select,.office-shell textarea {
  min-height: 44px; border: 1px solid #3b5360; border-radius: 10px;
  background: #0c1922; color: #e3eef1; padding: 11px 12px; font: inherit; font-size: 14px; min-width: 0;
}
.office-shell input::placeholder,.office-shell textarea::placeholder { color: #78929f; }
.office-shell input[type=file] { max-width: 100%; font-size: 12px; }
.office-shell input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 11px; border: 1px solid #3d5865; border-radius: 7px;
  color: #d1e6eb; background: #1a303c; cursor: pointer; font: inherit;
}
.office-shell .row-icon { background: transparent; color: #b3cbd4; padding: 9px; border-radius: 10px; }
.office-shell .row-icon:hover { background: #253a46; color: #e1f0f3; }
.office-shell .remove-photo:hover { color: #f2b2a5; background: #3a2b2c; }
.office-shell .office-brand { width: 150px; max-height: 46px; margin-bottom: 9px; }
.office-shell .office-title h1 { margin: 0; }
.office-shell .office-icon-nav { gap: 7px; }
.office-shell .office-icon-nav a { min-height: 42px; border-radius: 10px; font-size: 12px; }
.office-shell .office-stats { gap: 12px; margin-bottom: 18px; }
.office-shell .office-stats > div { position: relative; border-color: var(--office-border); background: var(--office-surface); border-radius: 14px; padding: 20px; }
.office-shell .office-stats span { display: flex; gap: 9px; align-items: center; color: #adc1ca; font-size: 12px; letter-spacing: 0; }
.office-shell .office-stats span .ui-icon { color: #81bca8; }
.office-shell .office-stats strong { margin: 10px 0 0; font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.office-shell .drive-status-bar { border-color: var(--office-border); border-radius: 12px; background: #10212a; padding: 14px 16px; }
.office-shell .drive-status-bar progress { height: 5px; }
.office-shell .selection-bar { border-radius: 11px; border-color: #2b414d; background: #10202a; padding: 10px 12px; z-index: 2; }
.office-shell .selection-bar button { min-height: 38px; font-size: 12px; }
.office-shell .document-row { gap: 16px; padding: 18px 0; border-color: #2a3e49; }
.office-shell .document-thumb { width: 74px; height: 78px; flex-basis: 74px; border-color: #3a515e; border-radius: 10px; }
.office-shell .document-thumb > .ui-icon { width: 24px; height: 24px; color: #718f9d; }
.office-shell .document-info > strong { font-size: 14px; font-weight: 600; }
.office-shell .document-info p { margin: 5px 0; color: #9fb5c0; }
.office-shell .document-info .photo-note { color: #ccdde3; }
.office-shell .badge { padding: 3px 7px; border-radius: 6px; border-color: #3a5360; color: #b7d1db; font-size: 10px; font-weight: 450; }
.office-shell .pagination { margin-bottom: 0; gap: 8px; }
.office-shell .alert { padding: 13px 16px; border-color: #3c5a62; background: #142a30; font-size: 13px; }
.office-shell .alert.error { border-color: #70504b; background: #2c2326; }
.office-shell .settings-card .quality-option { background: #10202a; border-color: #314c59; border-radius: 11px; font-size: 13px; padding: 14px; }
.office-shell .quality-option:has(:checked) { background: #1b342c; border-color: #609e82; }
.office-shell .settings-card label { color: #b3c7d0; font-size: 12px; }
.office-shell .settings-card small,.office-shell .hint { color: #8fa8b5; font-size: 12px; }
.office-shell .settings-card .secondary { margin: 0; }
.office-shell .settings-card p { overflow-wrap: anywhere; }
.office-shell .settings-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; }
.office-shell .settings-link:hover { color: #d3f5e6; }
.office-shell .settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.office-shell .drive-actions { gap: 8px; margin: 12px 0; }
.office-shell .drive-steps { gap: 10px; counter-reset: drive; list-style: none; margin: 0 0 20px; }
.office-shell .drive-steps li { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.office-shell .drive-steps li::before { counter-increment: drive; content: counter(drive); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #3a515d; border-radius: 50%; font-size: 10px; }
.office-shell .drive-steps .complete::before { content: '✓'; background: #214134; border-color: #4b8168; }
.office-shell .password-form h3 { font-size: 14px; margin: 20px 0 0; font-weight: 550; }
.users-shell .user-form { gap: 12px; }
.users-shell .user-form textarea { width: 100%; resize: vertical; }
.users-shell .user-form label { gap: 7px; color: #a5bcc7; font-size: 12px; }
.users-shell .user-heading { margin-bottom: 18px; }
.users-shell .user-heading strong { font-size: 15px; font-weight: 600; }
.users-shell .user-heading .badge { margin-left: auto; }
.users-shell .user-row { padding: 22px 0; border-color: #2c414c; }
.users-shell .office-panel > details > summary,.users-shell .user-list > details > summary { cursor: pointer; color: #bbd0d8; font-size: 13px; padding: 4px 0; }
.users-shell details[open] > .user-form { margin-top: 20px; }
.users-shell .user-delete { margin-top: 16px; }
.users-shell .user-delete summary { font-size: 12px; color: #d2a59b; }
.plans-office .plan-card { background: var(--office-surface); border-color: var(--office-border); padding: 20px; gap: 18px; }
.plans-office .plan-card h2 { margin-bottom: 7px; }
.plans-office .plan-card-actions { gap: 7px; }
.plans-office .plan-state { font-size: 10px; padding: 4px 7px; border-radius: 6px; }
.plans-office .plan-upload > summary { font-size: 14px; }
.plans-office .plan-form-grid { gap: 16px; }
.plans-office .plan-upload-form label { font-size: 12px; margin: 0; }
.plans-office .plan-upload-form .plan-file { margin-bottom: 18px; }
.plans-office .plan-upload-form :is(input,select) { margin: 8px 0 0; }
.plans-office .plan-danger { background: transparent; }
.plans-office .plan-danger:hover { background: #382b2c; border-color: #a4786d; }
.plans-office .plan-import-progress { margin: 18px 0; padding: 18px 20px; border: 1px solid #3d5e63; border-radius: 14px; background: #142b30; }
.plans-office .import-heading { display: flex; align-items: center; gap: 10px; }
.plans-office .import-heading strong { flex: 1; min-width: 0; color: #c1dee1; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.plans-office .import-heading output { color: #9fbcc4; font-size: 11px; font-variant-numeric: tabular-nums; }
.plans-office .import-indicator { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 2px solid #456364; border-top-color: #a5e8ca; border-radius: 50%; animation: office-import-spin .85s linear infinite; }
.plans-office .import-indicator svg { display: none; }
.plans-office .plan-import-progress[data-state=done] { border-color: #426e59; background: #172e27; }
.plans-office .plan-import-progress[data-state=done] .import-indicator { color: #a5e8ca; border: 0; animation: none; }
.plans-office .plan-import-progress[data-state=done] .import-indicator svg { display: block; }
.plans-office .plan-import-progress[data-state=error] { border-color: #825c4e; background: #302723; }
.plans-office .plan-import-progress[data-state=error] .import-indicator { border: 1px solid #c89881; color: #efbda3; animation: none; font-size: 12px; }
.plans-office .plan-import-progress[data-state=error] .import-indicator::after { content: '!'; }
.plans-office #retry-plan-import { margin-top: 14px; }
.plans-office #upload-progress { width: 100%; display: block; height: 5px; margin-top: 14px; accent-color: #a5e8ca; }
@keyframes office-import-spin { to { transform: rotate(360deg); } }
@media(max-width:760px) {
  .office-shell { padding-top: 22px; }
  .office-shell .settings-card,.office-shell .office-panel { padding: 20px; }
  .office-shell .office-header,.office-shell .page-header { gap: 12px; }
  .office-shell .page-header h1,.office-shell .office-header h1 { font-size: 24px; }
  .office-shell .office-stats > div { padding: 15px; }
  .office-shell .office-stats span { font-size: 11px; gap: 6px; }
  .office-shell .office-stats span .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .office-shell .office-stats strong { font-size: 26px; }
}
@media(max-width:600px) {
  .office-shell .office-icon-nav { gap: 7px; }
  .office-shell .office-icon-nav a { padding: 11px 4px; font-size: 10px; }
  .settings-office .office-icon-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .office-shell .office-stats { gap: 8px; }
  .office-shell .office-stats > div { padding: 13px 10px; }
  .office-shell .office-stats span .ui-icon { display: none; }
  .office-shell .document-row { gap: 10px; }
  .office-shell .document-thumb { width: 58px; height: 68px; flex-basis: 58px; }
  .office-shell .document-info > strong { font-size: 13px; }
  .office-shell .document-links { gap: 2px; }
  .office-shell .document-links .row-icon { min-height: 36px; height: 36px; width: 34px; }
  .office-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),.office-shell select,.office-shell textarea { font-size: 16px; }
  .office-shell .drive-actions > button { width: 100%; }
  .plans-office .plan-card { padding: 16px; }
}
@media(prefers-reduced-motion:reduce) { .office-shell :is(button,a,summary) { transition: none; } .plans-office .import-indicator { animation: none; } }

/* Drive acknowledgement remains distinct from work still waiting to be archived. */
.office-shell .drive-status-bar { transition: background-color .4s ease,border-color .4s ease; }
.drive-status-heading { display: flex; align-items: center; gap: 9px; font-weight: 550; line-height: 1.5; }
.drive-status-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #65705d; border-radius: 8px; color: #dec08c; }
.drive-status-mark .ui-icon { display: none; width: 16px; height: 16px; }
.drive-status-mark::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.office-shell .drive-status-bar[data-state=verified] { border-color: #3c6954; background: #122b23; }
[data-state=verified] .drive-status-mark { color: #a5e8ca; border-color: #43785e; background: #234533; }
[data-state=verified] .drive-status-mark .ui-icon { display: block; }
[data-state=verified] .drive-status-mark::after { display: none; }
.office-shell .drive-status-bar:is([data-state=pending],[data-state=attention]) { border-color: #6a583d; background: #28251d; }
.office-shell .drive-status-bar small { line-height: 1.6; overflow-wrap: anywhere; }
.office-shell .drive-status-bar:is([data-state=pending],[data-state=attention]) small { color: #d2b992; }
.office-shell .drive-status-bar button { min-height: 44px; }
.office-shell .drive-status-bar[aria-busy=true] button .ui-icon { animation: office-import-spin 1.2s linear infinite; }
.office-shell .document-row .row-icon { min-width: 44px; min-height: 44px; }
.office-shell .badge[data-drive-state=synced] { color: #a8dfc3; border-color: #3f6954; background: #1c3529; }
.office-shell .badge:is([data-drive-state=pending],[data-drive-state=syncing],[data-drive-state=error],[data-drive-state=removal_pending]) { color: #dfc291; border-color: #695939; background: #30291e; }
.office-shell .document-info > strong { overflow-wrap: anywhere; }
@media(max-width:600px) { .office-shell .document-row { gap: 10px; } .office-shell .document-links { gap: 5px; } .office-shell .office-stats > div { padding: 15px 10px; } }
@media(prefers-reduced-motion:reduce) { .office-shell .drive-status-bar { transition: none; } .office-shell .drive-status-bar[aria-busy=true] button .ui-icon { animation: none; } }

.office-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 21px; }
.office-overview-heading h2 { font-size: 20px; font-weight: 550; letter-spacing: -.4px; margin: 5px 0 0; }
.office-eyebrow { color: #86ae9e; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; }
.office-shell .office-drive-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 15px; border: 1px solid #527c65; border-radius: 12px; background: #234132; color: #c0efd4; text-decoration: none; font-size: 13px; font-weight: 550; white-space: nowrap; }
.office-drive-link > .ui-icon:last-child { width: 16px; height: 16px; transform: rotate(-45deg); }
.office-shell .office-panel { box-shadow: 0 8px 30px #0000000a; }
.office-shell .office-stats > div { background: linear-gradient(135deg,#152a31,#14222c); }
.office-shell .document-links .row-icon { border: 1px solid #304853; background: #152832; border-radius: 10px; }
.office-shell .selection-bar { gap: 12px; }
.office-shell .office-title { display: flex; flex-direction: column; gap: 7px; }
@media(max-width:360px) { .office-overview-heading { gap: 10px; } .office-overview-heading h2 { font-size: 17px; } .office-shell .office-drive-link { font-size: 12px; gap: 7px; padding: 10px; } }

.office-shell.jobs-shell { max-width: 1100px; padding: clamp(17px,3vw,34px) clamp(14px,3.7vw,38px) 48px; }
.jobs-shell .page-header { padding-bottom: 16px; border-bottom: 1px solid var(--fw-edge); margin-bottom: 22px; }
.jobs-count {
  flex: none;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid var(--fw-edge);
  border-radius: 999px;
  color: var(--fw-muted);
  background: var(--fw-inset);
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.job-create-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(12px,2vw,20px);
  border: 1px solid var(--fw-edge);
  border-radius: 16px;
  background: var(--fw-surface);
}
.job-create-heading { display: flex; align-items: center; gap: 10px; }
.office-shell .job-create-heading h2 { margin: 0; white-space: nowrap; }
.jobs-shell .job-create { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin: 0; }
.jobs-shell .job-create :is(input,button) { min-height: 46px; width: 100%; }
.jobs-shell .job-create input { padding: 9px 12px; border-radius: 10px; font-size: 16px; }
.jobs-shell .job-create button { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.jobs-shell .job-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.jobs-shell .job-card { min-width: 0; margin: 0; padding: 0; border-radius: 16px; }
.jobs-shell .job-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  min-height: 142px;
  height: 100%;
  gap: clamp(16px,2.7vw,27px);
  margin: 0;
  padding: clamp(14px,2vw,20px);
  border-radius: inherit;
  background: linear-gradient(145deg,var(--fw-raised),var(--fw-surface) 76%);
  color: var(--fw-ink);
  text-decoration: none;
}
.jobs-shell .job-card-link:is(:hover,:focus-visible) { background: linear-gradient(145deg,var(--fw-tint),var(--fw-surface) 76%); }
.jobs-shell .job-card-link:focus-visible { outline: 2px solid var(--fw-accent); outline-offset: 3px; }
.job-card-top, .job-card-heading { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.job-card-top { align-items: start; }
.job-card-heading { align-items: end; }
.jobs-shell .job-card-heading strong { color: inherit; font-size: clamp(17px,2vw,21px); font-weight: 650; line-height: 1.25; letter-spacing: -.25px; }
.jobs-shell .job-symbol, .job-shortcut-symbol {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  border: 1px solid var(--fw-edge);
  border-radius: 12px;
  background: var(--fw-tint);
  color: var(--fw-accent);
}
.jobs-shell .job-state-label {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--fw-inset);
  color: var(--fw-muted);
  font-size: 11px;
  line-height: 1.35;
}
.jobs-shell .job-state-label.active { color: var(--fw-accent); background: var(--fw-tint); }
.jobs-shell .job-state { width: 6px; height: 6px; background: currentColor; }
.job-card-arrow, .job-shortcut-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--fw-edge);
  border-radius: 9px;
  color: var(--fw-accent);
  background: var(--fw-inset);
}
.office-shell :is(.job-card-arrow,.job-shortcut-arrow) .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.jobs-shell .quiet-empty { grid-column: 1/-1; }
.jobs-shell .quiet-empty p { color: var(--fw-muted); }
.office-home .office-title h1{margin:0!important;line-height:1.2!important;letter-spacing:-.4px}.office-header .office-title.app-heading{display:flex;flex-direction:row;align-items:center}.office-home .office-title .office-brand{display:block;object-fit:contain;object-position:left center}
.office-home .office-title { flex-direction: row; align-items: center; gap: 15px; min-width: 0; }
.office-home .office-title .office-brand { width: clamp(95px,15vw,155px); max-height: 44px; margin: 0; }
.office-home .office-title h1 { flex: 0 0 auto; font-size: 24px; }
@media(max-width:820px) { .jobs-shell .job-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
 .office-shell.jobs-shell .page-header { gap: 8px; margin-bottom: 15px; }
 .job-create-card { grid-template-columns: 1fr; gap: 11px; }
 .job-create-heading .job-symbol { width: 33px; height: 33px; border-radius: 9px; }
 .jobs-shell .job-list { grid-template-columns: minmax(0,1fr); gap: 9px; margin-top: 12px; }
 .jobs-shell .job-card-link { min-height: 112px; }
}
@media(max-width:365px) {
 .jobs-count { padding: 4px 7px; font-size: 10px; }
 .jobs-shell .job-create button { padding: 8px 10px; gap: 4px; font-size: 12px; }
 .jobs-shell .job-create button .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
}
@media(max-width:600px) {
 .office-home .office-header { gap: 9px; align-items: center; }
 .office-home .office-title { flex: 1; gap: 10px; margin: 0; }
 .office-home .office-title .office-brand { width: 108px; }
 .office-home .office-title h1 { font-size: 21px; }
 .office-home .office-icon-nav { flex: 1 0 calc(100% - 53px); width: calc(100% - 53px); }
 .office-home .office-header > .nav-filter { order: 4; }
 .office-home .office-header > form { margin: 0; }
}
@media(max-width:360px) { .office-home .office-title .office-brand { width: 88px; } .office-home .office-title h1 { font-size: 19px; } .office-home .office-header { gap: 8px; } }
.office-home .office-title{overflow:hidden;flex:1 1 0}.office-home .office-title .office-brand{flex-shrink:0}.office-home .office-title h1{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:22px!important}@media(max-width:600px){.office-home .office-title h1{font-size:20px!important}}@media(max-width:360px){.office-home .office-title .office-brand{width:80px}.office-home .office-title{gap:8px}.office-home .office-title h1{font-size:17px!important}}
