:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #0b194b;
  background: #f4f6fa;
  font-size: 15px;
  --ink: #0b194b;
  --muted: #61739b;
  --brand: #103c78;
  --border: #dfe6f2;
  --soft: #eff4fa;
  --blue: #075df4;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
.max-webapp { --safe-top: 0px; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #6d91ee; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.65px; margin: 2px 3px 16px; font-weight: 700; overflow-wrap: anywhere; }
h1.long-title { font-size: clamp(23px, 6.7vw, 29px); }
h2 { font-size: 16px; line-height: 1.24; letter-spacing: -.25px; font-weight: 700; }
.app { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: #fff; position: relative; }
.app-header { padding: calc(16px + var(--safe-top)) 18px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; width: 190px; height: auto; max-width: 75%; object-fit: contain; }
.brand--large { width: 268px; max-width: 80%; }
.icon { width: 23px; height: 23px; flex: 0 0 23px; vertical-align: middle; }
.icon-button { border: 0; border-radius: 50%; background: transparent; display: inline-flex; justify-content: center; align-items: center; padding: 8px; min-width: 40px; min-height: 40px; }
.shield-toggle { position: relative; margin: -4px -2px -4px 0; }
.shield-toggle[aria-expanded="true"] { background: #eef3fa; }
.shield-toggle .icon { width: 27px; height: 27px; }
.shield-menu { position: absolute; z-index: 20; right: 10px; top: calc(59px + var(--safe-top)); width: 254px; max-width: calc(100% - 24px); background: #fff; padding: 10px 9px; border: 1px solid #d8dce4; box-shadow: 0 9px 22px #22345020; }
.shield-menu::before { content: ''; position: absolute; right: 20px; top: -6px; width: 11px; height: 11px; background: #fff; border-top: 1px solid #d8dce4; border-left: 1px solid #d8dce4; transform: rotate(45deg); }
.menu-item { width: 100%; display: flex; gap: 16px; align-items: center; background: transparent; border: 0; border-radius: 6px; padding: 10px; text-align: left; font-size: 14px; min-height: 40px; }
.menu-item:hover { background: #f4f7fc; }
.menu-item .icon { width: 22px; height: 22px; flex-basis: 22px; }
.screen { padding: 0 15px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; min-height: calc(100dvh - 71px - var(--safe-top)); }
.screen--nav { padding-bottom: calc(91px + var(--safe-bottom)); }
.screen > h1 { margin-top: 1px; margin-bottom: 3px; }
.back-link { display: inline-flex; width: fit-content; gap: 7px; align-items: center; color: #526691; min-height: 32px; margin: -3px 0 1px; font-size: 14px; padding: 0 10px 0 0; border: 0; background: transparent; }
.back-link .icon { width: 19px; height: 19px; flex-basis: 19px; }
.segmented { display: flex; width: 100%; min-height: 37px; border: 1px solid #d6dfed; border-radius: 30px; background: #f0f3f7; padding: 0; flex-shrink: 0; }
.segment { width: 50%; border: 0; background: transparent; color: var(--ink); border-radius: 30px; min-height: 37px; padding: 8px 12px; font-size: 16px; }
.segment.is-active { background: var(--brand); color: white; }
.module-switch { margin-bottom: 1px; }
.task-list { display: grid; gap: 9px; margin-top: 2px; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; background: #fff; min-width: 0; }
.task-summary { padding: 12px 13px 11px; }
.task-heading { display: flex; align-items: flex-start; gap: 7px; justify-content: space-between; }
.task-heading h2 { font-size: 17px; padding-top: 1px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.task-description { color: var(--muted); line-height: 1.35; font-size: 15px; margin: 4px 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-link .task-description { margin-top: 3px; margin-bottom: 8px; }
.badge { display: inline-flex; justify-content: center; align-items: center; padding: 7px 12px; border-radius: 30px; font-size: 13px; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.badge--progress { color: #945000; background: #fff0cb; }
.badge--review { color: #0760ff; background: #e0ecff; }
.badge--revision { color: #6b15e9; background: #ebddff; }
.badge--overdue, .badge--cancelled { color: #f01821; background: #ffe1e3; }
.badge--accepted { color: #078315; background: #e7f9ec; }
.badge--unknown { background: #edf1f7; color: var(--muted); }
.meta { display: flex; align-items: flex-start; gap: 13px; color: var(--muted); line-height: 1.35; min-height: 24px; }
.meta + .meta { margin-top: 6px; }
.meta > span { min-width: 0; overflow-wrap: anywhere; padding-top: 1px; }
.task-link { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s; }
.task-link:hover { border-color: #a9bcd9; }
.section > h2 { margin-bottom: 10px; }
.rows { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.rows .meta { margin: 0; padding: 9px 11px; align-items: center; }
.rows .meta + .meta { border-top: 1px solid var(--border); }
.rows .muted { padding: 9px 11px; }
.people { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: 23px 1fr 1.2fr; gap: 12px; align-items: start; line-height: 1.35; }
.person-row > span { padding-top: 2px; overflow-wrap: anywhere; }
.person-row .icon { color: #536994; }
.muted { color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 13px; padding: 9px 13px; background: #f0f6fd; border-radius: 10px; color: #526791; font-size: 13px; line-height: 1.4; }
.notice .icon { color: var(--brand); width: 20px; height: 20px; flex-basis: 20px; margin-top: 2px; }
.button { border: 1px solid transparent; border-radius: 30px; width: 100%; min-height: 44px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: 16px; text-align: center; }
.button--primary { color: #fff; background: var(--brand); }
.button--secondary { background: #eff3f8; color: #133576; }
.button--outline { color: #102764; background: #f4f7fe; border-color: #8c9ce1; border-radius: 9px; min-height: 38px; font-size: 14px; }
.button--ghost { background: #eaf3ff; color: var(--blue); justify-content: flex-start; border-radius: 9px; font-size: 14px; }
.button--danger { background: #fff0f1; color: #e51d2a; }
.button--text { color: #1253c9; background: transparent; border-radius: 8px; justify-content: flex-start; padding: 8px 0; font-size: 14px; }
.screen-actions { margin-top: auto; display: grid; gap: 9px; padding-top: 3px; }
.screen-actions--flow { margin-top: 2px; }
.bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--border); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); padding: 9px 0 calc(10px + var(--safe-bottom)); z-index: 10; }
.bottom-nav button { display: flex; align-items: center; flex-direction: column; color: #7c87a2; gap: 4px; font-size: 12px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.bottom-nav .icon { width: 26px; height: 26px; }
.bottom-nav button.is-active { color: #092d70; }
.subtask-link { display: flex; width: 100%; align-items: center; padding: 9px 10px; gap: 14px; border: 0; background: transparent; color: #536892; line-height: 1.35; min-height: 42px; text-align: left; }
.subtask-link span { flex: 1; overflow-wrap: anywhere; }
.subtask-link + .subtask-link { border-top: 1px solid var(--border); }
.subtask-link .icon:last-child { width: 16px; height: 16px; flex-basis: 16px; }
.field { display: block; min-width: 0; }
.field > label, .field > .field-label { display: block; margin: 1px 0 7px; font-size: 15px; font-weight: 700; }
input:not([type="checkbox"]):not([type="file"]), textarea, select { display: block; width: 100%; border: 1px solid #d6dfed; border-radius: 9px; padding: 11px 13px; background: #fff; color: #283e71; font-size: 15px; min-height: 40px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #8995ae; opacity: 1; }
textarea { resize: vertical; line-height: 1.4; min-height: 78px; }
.field-icon { display: flex; align-items: center; gap: 10px; position: relative; min-width: 0; }
.field-icon > .icon { position: absolute; left: 12px; pointer-events: none; color: #526b9a; }
.field-icon input:not([type="checkbox"]) { padding-left: 43px; min-width: 0; }
input[type="date"], input[type="time"] { appearance: none; -webkit-appearance: none; min-width: 0; }
.date-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.form-layout { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.form-layout h1 { margin-top: 2px; }
.form-layout .screen-actions { margin-top: auto; }
.form-layout .screen-actions--flow { margin-top: 2px; }
.checks { display: grid; gap: 10px; padding: 2px 0; }
.check-label { display: flex; gap: 12px; align-items: center; font-weight: 400; min-height: 28px; color: var(--muted); }
.check-label input { accent-color: var(--brand); width: 22px; height: 22px; margin: 0; flex: 0 0 22px; }
.reminder-list { padding: 6px; }
.reminder-item { display: flex; align-items: center; gap: 12px; padding: 5px 9px; min-height: 38px; color: #4b608d; }
.reminder-item span { flex: 1; }
.reminder-item + .reminder-item { border-top: 1px solid var(--border); }
.reminder-item .icon-button { margin: -4px -3px -4px 0; min-width: 34px; min-height: 34px; padding: 7px; }
.parent-summary { line-height: 1.4; color: var(--muted); font-size: 13px; background: #fcfdff; }
.parent-summary strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.parent-summary .parent-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.parent-summary .meta { font-size: 12px; gap: 6px; }
.parent-summary .icon { width: 17px; height: 17px; flex-basis: 17px; }
.counter { display: block; text-align: right; color: #8a9aba; font-size: 12px; margin: 7px 2px -1px; }
.edit-text { min-height: 144px; }
.form-error { padding: 11px 13px; border: 1px solid #f4c3c9; background: #fff3f4; color: #b32533; border-radius: 9px; font-size: 14px; line-height: 1.4; }
.submission-comment { min-height: 88px; background: #f7f9fc; }
.comment-bubble { padding: 13px 15px; border-radius: 12px; background: #f4f6fa; color: #435479; line-height: 1.5; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-author { margin-top: 8px; }
.comment-date { color: #7b87a2; font-size: 13px; margin-top: 5px; }
.file-list { display: grid; gap: 6px; }
.file-download-item { display: grid; gap: 4px; }
.file-download-feedback { margin: 0 9px 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.file-download-feedback[data-state="success"] { color: #167245; }
.file-download-feedback[data-state="error"] { color: #a6293f; }
.file-row { display: flex; align-items: center; gap: 15px; padding: 9px; background: white; border: 1px solid var(--border); border-radius: 9px; width: 100%; text-align: left; min-width: 0; }
.file-row > .icon { color: #536b9c; margin: 2px; }
.file-download > .icon:last-child { color: var(--brand); }
.file-kind { clip-path: polygon(0 0, 68% 0, 100% 27%, 100% 100%, 0 100%); flex: 0 0 30px; height: 38px; background: #448aff; display: flex; align-items: flex-end; justify-content: center; color: white; font-size: 10px; font-weight: 700; padding-bottom: 7px; border-radius: 3px; }
.file-kind--pdf { background: #ff5960; }
.file-description { flex: 1; display: grid; gap: 4px; min-width: 0; }
.file-name { font-size: 14px; overflow-wrap: anywhere; }
.file-size { font-size: 12px; }
.upload-zone { display: flex; justify-content: center; align-items: center; gap: 14px; border: 1.5px dashed #c8d5ed; border-radius: 9px; padding: 16px 9px; color: var(--blue); width: 100%; background: white; margin-bottom: 8px; cursor: pointer; text-align: left; }
.upload-zone .upload-icon { display: inline-flex; padding: 10px; border-radius: 50%; background: #eaf1ff; }
.upload-zone small { display: block; font-size: 11px; color: #8b9aba; margin-top: 4px; }
.upload-limits { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.history-list { display: grid; gap: 9px; }
.history-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; align-items: flex-start; gap: 14px; color: #536b9c; font-size: 14px; line-height: 1.45; }
.history-item p { margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-content { flex: 1; min-width: 0; }
.history-item--revision { background: #fcfaff; }
.revision-area { min-height: 190px; font-size: 16px; }
.revision-form { gap: 20px; }
.revision-form .screen-actions { margin-top: 18px; }
.user-list { display: grid; gap: 11px; }
.user-card { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; position: relative; }
.user-main { flex: 1; min-width: 0; }
.user-name { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; display: block; font-weight: 700; margin-bottom: 7px; }
.user-count { font-size: 14px; color: var(--muted); }
.user-delete { border: 0; background: #fff1f2; border-radius: 8px; padding: 8px; color: #ed2533; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; min-height: 38px; }
.user-delete .icon { width: 19px; height: 19px; flex-basis: 19px; }
.role-toggle { padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; background: #eaf0fb; color: #526fa9; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; min-height: 33px; width: 100%; max-width: 240px; text-align: left; }
.role-toggle[aria-expanded="true"] { border-color: #b9cdf6; box-shadow: 0 0 0 1px #d4e0f7; }
.role-toggle .icon { width: 16px; height: 16px; flex-basis: 16px; }
.role-menu { position: absolute; z-index: 15; top: calc(100% - 12px); left: 13px; width: min(270px, calc(100vw - 58px)); border-radius: 11px; padding: 7px; background: #fff; border: 1px solid #d6dfed; box-shadow: 0 7px 16px #243b6230; }
.role-option { width: 100%; background: transparent; border: 0; border-radius: 7px; text-align: left; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; min-height: 37px; }
.role-option.is-selected { background: #e9f0ff; }
.role-option[aria-disabled="true"] { color: #788298; }
.role-hint { padding: 7px 10px; color: #6d7c96; font-size: 11px; line-height: 1.4; }
.empty-state, .error-state { text-align: center; color: var(--muted); padding: 38px 18px; line-height: 1.5; }
.empty-state .icon { width: 40px; height: 40px; margin-bottom: 14px; }
.error-state h2 { color: var(--ink); margin-bottom: 12px; }
.error-state .button { margin-top: 20px; }
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 20px; gap: 40px; }
.progress { width: 160px; height: 7px; border-radius: 10px; background: #e1e5ed; overflow: hidden; }
.progress::after { content: ''; display: block; height: 100%; width: 62%; background: #153d77; border-radius: inherit; animation: loading 1.8s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-50%); } to { transform: translateX(90%); } }
.pending-screen { min-height: 100dvh; padding: 110px 20px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.pending-screen .brand { width: 246px; max-width: 85%; margin-bottom: 64px; }
.pending-illustration { width: 190px; height: 190px; margin-bottom: 27px; }
.pending-screen h1 { font-size: 24px; letter-spacing: -.3px; margin: 0 0 17px; }
.pending-screen p { font-size: 17px; line-height: 1.45; color: #8f9aaa; max-width: 295px; }
.pending-watermark { position: absolute; right: -45px; bottom: 36px; width: 195px; height: 200px; opacity: .035; }
.loading-inline { min-height: 150px; display: flex; align-items: center; justify-content: center; }
.toast { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(85px + var(--safe-bottom)); width: calc(100% - 40px); max-width: 420px; color: #fff; background: #163963; box-shadow: 0 4px 20px #10264726; padding: 12px 16px; border-radius: 12px; line-height: 1.4; font-size: 14px; }
dialog { border: 1px solid var(--border); border-radius: 16px; color: var(--ink); padding: 22px; width: calc(100% - 36px); max-width: 410px; box-shadow: 0 15px 45px #15396935; }
dialog::backdrop { background: #14244066; }
dialog h2 { font-size: 20px; margin-bottom: 12px; }
dialog p { line-height: 1.45; color: var(--muted); margin-bottom: 18px; overflow-wrap: anywhere; }
.download-status { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.dialog-actions { display: grid; gap: 9px; margin-top: 18px; }
dialog .field { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 350px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  .task-heading { flex-wrap: wrap; }
  .task-heading h2 { flex-basis: 100%; }
  .task-heading .badge { padding: 5px 10px; }
  .person-row { grid-template-columns: 21px 1fr; gap: 7px; }
  .person-row > span:last-child { grid-column: 2; padding-top: 0; }
  .date-grid { grid-template-columns: 1fr; }
  .user-delete { font-size: 0; gap: 0; }
  .brand { width: 185px; }
}
@media (min-width: 640px) { .app { box-shadow: 0 0 45px #2637560d; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.date-input { width:100%; min-height:41px; border:1px solid #d6dfed; border-radius:9px; padding:10px 13px; display:flex; align-items:center; gap:13px; background:white; color:#8995ae; text-align:left; }
/* Geometry matched to the supplied mobile references; no device frame or OS bar. */
h1:focus { outline:none; }
.app-header { padding-top:calc(8px + var(--safe-top)); padding-bottom:9px; }
.screen { gap:8px; min-height:calc(100dvh - 54px - var(--safe-top)); }
.screen > h1 { margin:0 3px; }
.module-switch { margin-bottom:0; }
.task-link.task-summary { position:relative; padding:10px 13px; }
.task-link .task-heading { min-height:20px; }
.task-link .task-heading h2 { font-size:16px; flex:initial; max-width:calc(100% - 92px); }
.task-link .badge { position:absolute; top:10px; right:10px; font-size:12px; padding:7px 10px; }
.task-link .task-description { max-width:250px; font-size:13px; line-height:1.28; margin:2px 0 6px; }
.task-link .meta { min-height:18px; font-size:13px; line-height:1.3; gap:12px; }
.task-link .meta > span { padding-top:0; }
.task-link .meta + .meta { margin-top:5px; }
.task-link .meta .icon { width:18px; height:18px; flex-basis:18px; }
.field-native { min-height:41px; border:1px solid #d6dfed; border-radius:9px; padding:11px 13px 11px 43px; }
.native-display { color:#283e71; font-size:15px; line-height:1.2; min-width:0; }
.field-native:focus-within { outline:3px solid #6d91ee; outline-offset:3px; }
.field-native input.native-picker { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; padding:0; margin:0; border:0; }
.field-native input::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; cursor:pointer; }
@media(max-width:350px) { .task-link .task-heading h2 { max-width:100%; margin-bottom:30px; } .task-link .badge { top:34px; } }
