/* Approved unit setup headers + task status controls; admin and client use one file. */
/* :is(#view,[data-ot-example]): the tour's sample unit screens (tour.js) draw the same task cards, so they get the same look (Colin, 2026-11-02: the sample's upload button showed unstyled). */
.ut-section,.ut-status-dialog{--ut-purple:#7c3aed;--ut-tint:#f3edff;--ut-open:#d6c4f7;--ut-green:#08794f;--ut-green-bg:#edf9f2;--ut-amber:#8a5700;--ut-amber-bg:#fff5df;--ut-muted:#6d6783;color:var(--text,#191629);font-family:Inter,system-ui,sans-serif}
[data-theme="dark"] :is(.ut-section,.ut-status-dialog){--ut-purple:#c3a4ff;--ut-tint:#322447;--ut-open:#655080;--ut-green:#8bdfbb;--ut-green-bg:#173a2f;--ut-amber:#f4ce84;--ut-amber-bg:#3e321c;--ut-muted:#b6afc7}
html :is(#view,[data-ot-example]) .ut-section{margin:12px 0;background:var(--surface,#fff);border:1px solid var(--border,#e6e2f0);border-radius:14px;box-shadow:0 2px 5px #32205b06;overflow:visible}
html :is(#view,[data-ot-example]) .ut-section[open]{border-color:var(--ut-open)}
html :is(#view,[data-ot-example]) .ut-section>summary{list-style:none;display:grid;grid-template-columns:38px minmax(0,1fr) auto 16px;gap:13px;align-items:center;padding:17px 19px;cursor:pointer;color:var(--text,#191629);border-radius:14px;min-height:72px;box-sizing:border-box}
html :is(#view,[data-ot-example]) .ut-section>summary::-webkit-details-marker{display:none}
html :is(#view,[data-ot-example]) .ut-section>summary::after{display:none}
html :is(#view,[data-ot-example]) .ut-section>summary:hover{filter:none;background:var(--surface-2,#f8f7fc)}
html :is(#view,[data-ot-example]) .ut-section>summary:focus-visible{outline:2px solid var(--ut-purple);outline-offset:3px}
.ut-tile{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ut-tint);color:var(--ut-purple)}
.ut-tile svg{width:20px;height:20px}
.ut-icon{display:inline-flex;flex:none;width:16px;height:16px}.ut-icon svg{width:100%;height:100%}
.ut-title{min-width:0;display:grid;gap:4px}
html :is(#view,[data-ot-example]) .ut-section .ut-title>.pname{font-size:14px;line-height:1.4;font-weight:650;letter-spacing:-.2px;overflow-wrap:anywhere;min-width:0;color:var(--text,#191629)}
.ut-title small{font-size:11px;font-weight:400;line-height:1.4;color:var(--ut-muted)}
.ut-completed{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap;padding:5px 8px;border-radius:6px;color:var(--ut-purple);background:var(--ut-tint)}
.ut-completed .ut-icon{width:13px;height:13px}
.ut-chevron{width:16px;height:16px;color:var(--ut-muted)}.ut-chevron svg{width:100%;height:100%}
.ut-section[open]>summary>.ut-chevron{transform:rotate(180deg);color:var(--ut-purple)}
.ut-phase-progress{width:110px;display:flex;flex-direction:column;gap:6px;align-items:stretch}
html :is(#view,[data-ot-example]) .ut-phase-progress .ppct{width:auto;text-align:right;font-size:12px;color:var(--ut-purple);font-variant-numeric:tabular-nums}
html :is(#view,[data-ot-example]) .ut-phase-progress .ptrack{display:block;flex:none;max-width:none;height:4px;border-radius:4px;background:var(--border,#e6e2f0);overflow:hidden}
.ut-phase-progress .ptrack i{display:block;height:100%;background:var(--grad,linear-gradient(90deg,#7c3aed,#a855f7));border-radius:4px}
html :is(#view,[data-ot-example]) .ut-section>.sec-done-body{padding:0 18px 12px;border-top:1px solid var(--border,#e6e2f0)}
html :is(#view,[data-ot-example]) .ut-section>.sec-done-body>.unit-task-phase{border:0;margin:0;box-shadow:none;background:transparent;border-radius:0;overflow:visible}
html :is(#view,[data-ot-example]) .unit-task-phase>.phase-body{padding:0!important}
html :is(#view,[data-ot-example]) .unit-task-phase>.ut-toolbar{padding:7px 0!important;min-height:0;background:transparent;border:0;justify-content:flex-end;cursor:default}
html :is(#view,[data-ot-example]) .ut-toolbar>:not(.phasebtns){display:none!important}
html :is(#view,[data-ot-example]) .ut-toolbar .phasebtns{opacity:1}
html :is(#view,[data-ot-example]) .ut-toolbar:not(:has(.phasebtns)),body[data-phases="locked"] #view .ut-toolbar,body[data-edit="client"] #view .ut-toolbar{display:none!important}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard{background:transparent;border:0;border-bottom:1px solid var(--border,#e6e2f0);border-radius:0;box-shadow:none;margin:0}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard:last-of-type{border-bottom:0}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;column-gap:12px;row-gap:4px;padding:12px 0;min-height:56px}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.thead-main{grid-area:1/1;min-width:0}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.tindic{grid-area:1/2;min-width:0}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.status-cell-wrap{grid-area:1/3;justify-self:end;min-width:0}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.row-del{grid-area:1/4}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .tmain{min-width:0}
html :is(#view,[data-ot-example]) .unit-task-phase .tname-input{min-width:0;width:100%;box-sizing:border-box}
html :is(#view,[data-ot-example]) .unit-task-phase .tname-static{overflow-wrap:anywhere}
html :is(#view,[data-ot-example]) .unit-task-phase .ut-native-status{display:none!important}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .status-cell-wrap :is(.ut-status,.ut-read-status){display:inline-flex;justify-content:flex-start;align-items:center;gap:7px;min-width:130px;width:auto;min-height:36px;padding:7px 10px;box-sizing:border-box;border:1px solid transparent;border-radius:8px;box-shadow:none;font:600 12px/1.4 Inter,system-ui,sans-serif;white-space:nowrap}
html :is(#view,[data-ot-example]) .unit-task-phase .ut-status{cursor:pointer}
html :is(#view,[data-ot-example]) .unit-task-phase .ut-status:disabled{opacity:1;cursor:default;pointer-events:auto}
html :is(#view,[data-ot-example]) .unit-task-phase :is(.ut-complete,.s-complete.ut-read-status){color:var(--ut-purple);background:var(--ut-tint)}
html :is(#view,[data-ot-example]) .unit-task-phase :is(.ut-progress.ut-status,.s-progress.ut-read-status){color:var(--ut-purple);background:var(--surface,#fff)}
html :is(#view,[data-ot-example]) .unit-task-phase .status-cell-wrap :is(.ut-progress.ut-status,.s-progress.ut-read-status){border-color:var(--ut-open)}
html :is(#view,[data-ot-example]) .unit-task-phase :is(.ut-ordered,.s-ordered.ut-read-status){color:var(--ut-amber);background:var(--ut-amber-bg)}
html :is(#view,[data-ot-example]) .unit-task-phase :is(.ut-pending,.ut-na,.s-pending.ut-read-status,.s-na.ut-read-status){color:var(--ut-muted);background:var(--surface-2,#f8f7fc)}
.ut-status-dot{width:7px;height:7px;background:currentColor;border-radius:50%;flex:none}
.ut-status-chevron{display:inline-flex;width:13px;height:13px;margin-left:auto}.ut-status-chevron svg{width:100%;height:100%}
.ut-status:focus-visible,.ut-option:focus-visible,.ut-dialog-close:focus-visible{outline:2px solid var(--ut-purple);outline-offset:3px}
html :is(#view,[data-ot-example]) .unit-task-phase .ut-status:hover:not(:disabled){border-color:currentColor}
html :is(#view,[data-ot-example]) .unit-task-phase .phase-foot{padding:10px 0 0}
.ut-status-dialog{position:fixed;inset:auto;margin:0;padding:17px;width:290px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;border:1px solid var(--border,#e6e2f0);border-radius:16px;background:var(--surface,#fff);box-shadow:0 16px 54px #17112726;z-index:2147483647}
.ut-status-dialog::backdrop{background:transparent}
.ut-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.ut-dialog-heading h2{font-size:15px;line-height:1.4;margin:0 0 4px;font-weight:700}.ut-dialog-heading p{font-size:12px;line-height:1.4;color:var(--ut-muted);margin:0;overflow-wrap:anywhere}
.ut-dialog-close{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:8px;background:var(--surface-2,#f8f7fc);color:var(--ut-muted);cursor:pointer;padding:0}
.ut-status-options{display:grid;gap:5px}
.ut-option{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid transparent;border-radius:10px;background:var(--surface,#fff);color:var(--text,#191629);font-family:inherit;text-align:left;cursor:pointer}
.ut-option[aria-pressed="true"]{background:var(--ut-tint);color:var(--ut-purple)}
.ut-option:hover:not(:disabled){border-color:var(--ut-open)}
.ut-option .ut-status-dot{margin:0 4px}
.ut-option-text{flex:1;min-width:0;display:grid;gap:3px}.ut-option-text strong{font-size:13px;font-weight:600}.ut-option-text small{font-size:11px;line-height:1.4;color:var(--ut-muted)}
.ut-selected{display:inline-flex;width:16px;height:16px}.ut-selected svg{width:100%;height:100%}
@media(max-width:600px){
  html :is(#view,[data-ot-example]) .ut-section>summary{grid-template-columns:32px minmax(0,1fr) auto 14px;gap:8px;padding:14px 12px}
  .ut-tile{width:32px;height:32px;border-radius:9px}.ut-tile svg{width:18px;height:18px}
  html :is(#view,[data-ot-example]) .ut-section .ut-title>.pname{font-size:13px}.ut-completed{padding:5px 6px;font-size:11px;gap:4px}
  .ut-phase-progress{width:64px}.ut-title small{font-size:11px}
  html :is(#view,[data-ot-example]) .ut-section>.sec-done-body{padding:0 11px 12px}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head{grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding:10px 0}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.status-cell-wrap{grid-area:1/2}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.tindic{grid-area:2/1;padding:0 0 0 26px;justify-content:flex-start}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.row-del{grid-area:2/2;justify-self:end;min-height:32px}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .status-cell-wrap :is(.ut-status,.ut-read-status){min-width:118px;min-height:44px;font-size:11px;padding:8px;gap:5px}
  html :is(#view,[data-ot-example]) .unit-task-phase .thead-main{display:grid;grid-template-columns:20px minmax(0,1fr);gap:4px;align-items:center}
  html :is(#view,[data-ot-example]) .unit-task-phase .thead-main>.chev2{grid-area:1/1;min-width:0}
  html :is(#view,[data-ot-example]) .unit-task-phase .thead-main>.tmain{grid-area:1/2;width:auto;min-width:0}
  html :is(#view,[data-ot-example]) .unit-task-phase .thead-main>.assignee-chip{grid-column:2;justify-self:start}
  .ut-status-dialog{left:0;right:0;top:auto;bottom:0;width:100%;max-width:100%;max-height:85dvh;border-radius:20px 20px 0 0;padding:24px 18px calc(18px + env(safe-area-inset-bottom));border-bottom:0}
  .ut-status-dialog::backdrop{background:#17112766}.ut-dialog-close{width:44px;height:44px}.ut-option{min-height:60px;padding:13px 12px}.ut-option-text strong{font-size:14px}.ut-option-text small{font-size:12px}
}

html :is(#view,[data-ot-example]) .unit-task-phase .ut-read-status .dot{background:currentColor!important}
/* Colin, 2026-10-19: tighter unit sections; no section toolbar (Slack reminder, move up/down, remove) and no "Add task"
   row on unit sections (tasks get added on request). Phones keep 44px status buttons. */
html :is(#view,[data-ot-example]) .unit-task-phase>.ut-toolbar,html :is(#view,[data-ot-example]) .unit-task-phase .phasebtns,html :is(#view,[data-ot-example]) .unit-task-phase .phase-foot{display:none!important}
html :is(#view,[data-ot-example]) .ut-section>summary{padding:12px 16px;min-height:58px}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head{padding:6px 0;min-height:44px}
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .status-cell-wrap :is(.ut-status,.ut-read-status){min-height:32px;padding:5px 10px}
html :is(#view,[data-ot-example]) .ut-section>.sec-done-body{padding-bottom:6px}
@media(max-width:600px){
  html :is(#view,[data-ot-example]) .ut-section>summary{padding:11px 12px}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head{padding:6px 0}
  html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .status-cell-wrap :is(.ut-status,.ut-read-status){min-height:44px;padding:8px}
}
/* Colin, 2026-10-19: the row's remove-task button was easy to hit by accident (it deleted at once). Hidden on unit sections. */
html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head>.row-del{display:none!important}

/* Copy buttons next to the order # and tracking # on delivery checklist rows (Colin, 2026-10-22). */
.dl-meta .dl-copy{border:none;background:transparent;cursor:pointer;font-size:11px;line-height:1;padding:2px 4px;margin-left:3px;border-radius:5px;opacity:.75}
.dl-meta .dl-copy:hover{background:var(--surface-2);opacity:1}

/* Same task width in team and client views. Posting still uses the existing role-specific handler. */
html :is(#view,[data-ot-example]) .ut-update-composer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:stretch}
html :is(#view,[data-ot-example]) .ut-update-composer>.link-input{width:100%;min-width:0;min-height:44px;box-sizing:border-box}
html :is(#view,[data-ot-example]) .ut-update-composer>button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:10px 16px;border-radius:9px;font:600 12px/1.4 Inter,system-ui,sans-serif;box-shadow:none;white-space:nowrap}
html :is(#view,[data-ot-example]) .ut-update-composer>.ut-post-slack{color:var(--ut-purple,var(--accent));background:var(--ut-tint,var(--surface-2));border:1px solid var(--ut-open,var(--border))}
html :is(#view,[data-ot-example]) .ut-update-composer>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html :is(#view,[data-ot-example]) .ut-update-composer>[hidden]{display:none!important}
.ut-update-hint{line-height:1.6}
@media(max-width:700px){
 html.ui2 :is(#view,[data-ot-example]) .taskcard>.taskcard-detail{padding:12px;min-width:0;box-sizing:border-box}
 /* Undo only the outer section/task gutters; retain one consistent 12px content gutter. */
 html.ui2 :is(#view,[data-ot-example]) .ut-section>.sec-done-body>.unit-task-phase>.phase-body>.taskcard>.taskcard-detail{width:calc(100% + 30px);margin-inline:-15px}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail>*{min-width:0;max-width:100%}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail>.kp-box{padding:0!important;margin:0!important;border:0;box-shadow:none;border-radius:0;background:transparent}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail :is(.pm-grid,.det-2col){grid-template-columns:minmax(0,1fr)}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail :is(.pm-f,.det-2col>div){min-width:0}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail :is(.pm-input,.det-select,.link-input){min-width:0;max-width:100%;box-sizing:border-box;font-size:16px}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail .update-add:not(.ct-update-composer){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail .update-add:not(.ct-update-composer)>.link-input{grid-column:1/-1;width:100%;min-height:48px;max-width:none}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail .update-add:not(.ct-update-composer)>button{width:100%;min-height:44px;padding:10px;border-radius:9px}
}


/* Client task interiors use the same input/button proportions as the team view. */
html.ui2 :is(#view,[data-ot-example]) .ct-task .taskcard-detail{gap:18px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-icon{width:17px;height:17px;flex:0 0 17px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .kp-box>.det-label{color:var(--text);font-size:12px;font-weight:650;letter-spacing:0;text-transform:none;margin-bottom:12px}
html.ui2 :is(#view,[data-ot-example]) .ct-task :is(.pm-input,.det-select,.link-input){min-height:44px;border-radius:9px;box-sizing:border-box}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-deadline>.det-select{width:100%;max-width:360px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-update-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-update-composer>button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:10px 22px;border-radius:9px;box-shadow:none;font:600 13px/1.4 Inter,system-ui,sans-serif}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--border)}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar :is(.ct-upload,.task-help-btn){display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:44px;min-width:0;box-sizing:border-box;margin:0;padding:10px 14px;border:1px solid var(--ut-open,var(--border));border-radius:9px;font:600 12px/1.4 Inter,system-ui,sans-serif;color:var(--ut-purple,var(--accent));background:var(--ut-tint,var(--accent-soft));box-shadow:none;cursor:pointer}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar .task-help-btn{background:var(--surface)}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-upload{position:relative;overflow:hidden}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-upload .ct-file-input{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}
html.ui2 :is(#view,[data-ot-example]) .ct-task :is(button,input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .task-help:not([hidden]){display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
html.ui2 :is(#view,[data-ot-example]) .ct-task .task-help textarea{min-width:0;min-height:100px;margin:0;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;line-height:1.5}
html.ui2 :is(#view,[data-ot-example]) .ct-task .task-help .btn-book{justify-self:end;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:9px;font:600 13px/1.4 Inter,system-ui,sans-serif;box-shadow:none}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-field{min-width:0;display:grid;align-content:start;gap:6px}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-field>.det-label{margin:0}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-value{min-width:0;min-height:44px;box-sizing:border-box;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-password{display:flex;gap:6px;align-items:center;min-width:0}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-password>.pm-input{flex:1;min-width:0;width:0;max-width:none}
html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-password>button{display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted);font-size:15px;cursor:pointer}
@media(max-width:600px){
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-deadline>.det-select{max-width:none;width:100%}
 html.ui2 :is(#view,[data-ot-example]) .ct-task input[type=date]{display:block;width:100%;min-width:0;min-height:46px;box-sizing:border-box;line-height:1.5}
 html.ui2 :is(#view,[data-ot-example]) .ct-task input[type=date]::-webkit-date-and-time-value{min-height:1.5em;text-align:left}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-update-composer{grid-template-columns:minmax(0,1fr)}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-update-composer>button{grid-column:1/-1;width:100%;min-height:46px}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar :is(.ct-upload,.task-help-btn){width:100%;min-height:46px;padding:10px}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-account-grid{grid-template-columns:minmax(0,1fr)}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .pm-grid>[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .task-help textarea{font-size:16px}
 html.ui2 :is(#view,[data-ot-example]) .ct-task .task-help .btn-book{width:100%;justify-self:stretch}
}
@media(max-width:360px){html.ui2 :is(#view,[data-ot-example]) .ct-task .ct-actionbar{grid-template-columns:minmax(0,1fr)}}

/* iPhone Safari draws date boxes at its own width and ignores width:100%, so Deadline boxes stuck out of the task card
   (Colin, 2026-10-23). Drawn plainly on phones they keep to the card like the other fields; tapping still opens the picker. */
@media(max-width:600px){
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail input[type=date]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;min-height:46px;box-sizing:border-box;text-align:left}
 html.ui2 :is(#view,[data-ot-example]) .taskcard-detail input[type=date]::-webkit-date-and-time-value{text-align:left}
}

/* The shared phone menu extends through 960px; status controls stay touch-sized there. */
@media(min-width:601px) and (max-width:960px){html :is(#view,[data-ot-example]) .unit-task-phase .taskcard-head .status-cell-wrap :is(.ut-status,.ut-read-status){min-height:44px;padding:8px 10px}}
