.ct-card{border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin:0 0 14px;background:#fff}
.ct-row{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.ct-card .button,.ct-fill .button,.ct-card button,.ct-card a.button{min-height:44px}
.ct-form label{display:block;margin:0 0 12px;font-weight:600}
.ct-form input:not([type=checkbox]):not([type=radio]),.ct-form select,.ct-form textarea,.ct-fill input:not([type=checkbox]):not([type=radio]),.ct-fill select{font-size:16px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;width:100%;box-sizing:border-box;font-family:inherit}
.ct-form textarea{min-height:50dvh;line-height:1.5}
.ct-check{display:flex!important;gap:10px;align-items:center;min-height:44px;font-weight:400!important}
.ct-check input{width:22px;height:22px;flex:none}
.ct-preview{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--soft);font-size:15px;max-height:60dvh;overflow:auto}
.ct-preview mark{background:#fff3c4;color:inherit;border-radius:3px}
.ct-tag{display:inline-block;min-height:44px;min-width:44px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#eceeed;color:#4b5651;font-size:13px;margin:2px}
.ct-warn{color:var(--error);font-weight:600}
.ct-seg{margin:0 0 10px;overflow-wrap:anywhere}
.ct-seg.is-warn{color:var(--muted)}
dialog.ct-fill{margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;color:var(--ink);background:#fff}
dialog.ct-fill[open]{display:flex;flex-direction:column}
dialog.ct-fill::backdrop{background:rgba(20,30,26,.45)}
.ct-fill-head{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;border-bottom:1px solid var(--line);flex:none}
.ct-fill-head h2{margin:0;font-size:18px}
.ct-x{min-width:44px;min-height:44px;border:0;background:none;font-size:28px;line-height:1;cursor:pointer}
.ct-fill-body{flex:1;overflow-y:auto;padding:14px 16px;-webkit-overflow-scrolling:touch}
.ct-fill-bar{flex:none;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.ct-fill-bar strong{flex:1 1 100%}
.ct-fill-bar .button{flex:1 1 140px}
.ct-blank{margin:0 0 14px}
.ct-blank>label{font-weight:600;display:block;margin-bottom:4px}
.ct-reasons{max-height:min(20vh,8rem);overflow-y:auto;flex:1 1 100%;margin:0 0 10px;padding-left:18px;color:var(--error)}
@media print{.ct-tracking{display:none!important}}
.ct-sched td{padding:4px 8px 4px 0}
.ct-fill fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 14px;padding:10px}
.ct-print-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}
.ct-status-form{display:inline}
@media print{.app-header,.app-nav,.app-footer,.ct-noprint,.ct-fill{display:none!important}.ct-print-copy{font-size:12pt}}
