
/* Tu Tam v3.1: additive mobile UX - existing timer and sync remain unchanged */
:root{--tt-accent:#28654b}
body .toast{top:calc(12px + env(safe-area-inset-top));bottom:auto;transform:translate(-50%,-24px);z-index:250}
body .toast.show{transform:translate(-50%,0)}
.app{padding-top:12px}
.topbar{margin-bottom:12px}
.realm-panel{padding:14px 15px 12px}
.realm-panel .rank-name{font-size:clamp(24px,6.6vw,29px)}
.realm-panel .spirit-frame{transform:scale(.91);transform-origin:center;max-height:145px}
.timer-panel{margin-top:10px}
.tt-toolbar{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-bottom:12px}
.tt-toolbar button{flex:1;border:1px solid #d6e2d7;border-radius:11px;background:#eff6ef;color:#28553f;padding:8px 5px;min-height:39px;font-weight:800;font-size:12px}
.tt-toolbar button:active,.tt-mini:active{transform:scale(.98)}
.tt-toolbar .tt-focus-action{background:#24644c;color:#fff}
.tt-status{padding:12px 13px;margin-top:11px;border:1px solid #dbe4dc;border-radius:15px;background:#fafdf9;box-shadow:0 4px 12px #2045270b}
.tt-status-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}
.tt-status-head strong{color:#25563c;font-size:13px}
.tt-goal-track{height:7px;background:#e2ebe2;border-radius:99px;margin-top:9px;overflow:hidden}
.tt-goal-fill{background:linear-gradient(90deg,#6dac76,#246c57);height:100%;width:0;transition:width .35s}
.tt-status-foot{display:flex;justify-content:space-between;margin-top:7px;font-size:11px;font-weight:750;color:#597263}
.tt-settings{border:1px solid #d6e2d7;border-radius:12px;margin-bottom:11px;background:#f9fdfa}
.tt-settings summary{cursor:pointer;list-style:none;padding:9px 11px;font-weight:850;font-size:12px;color:#32513d}
.tt-settings summary::-webkit-details-marker{display:none}
.tt-settings summary:after{content:"⌄";float:right}
.tt-config-grid{display:grid;gap:10px;padding:0 11px 12px}
.tt-config-grid label{font-size:12px;font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:10px}
.tt-config-grid select,.tt-config-grid input[type=range]{max-width:135px;width:45%;accent-color:#28654b}
.tt-config-grid select{padding:7px;background:white;border:1px solid #ccd7ce;border-radius:9px}
.tt-config-hint{font-size:10px;color:#607567}
.tt-badges{margin-top:12px;padding:14px}
.tt-badges h3{font-size:15px;margin:0 0 5px}
.tt-badges p{font-size:11px;color:#687b70;margin:0 0 10px}
.tt-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tt-badge{border:1px solid #dce8de;border-radius:12px;padding:10px 6px;text-align:center;background:#fff}
.tt-badge span{display:block;font-size:22px;line-height:1.3}
.tt-badge strong{display:block;font-size:11px;line-height:1.35;margin-top:4px}
.tt-badge small{font-size:10px;color:#607568}
.tt-badge.locked{opacity:.48;filter:grayscale(1);background:#f4f5f2}
.tt-reflection{border-top:1px solid #e4e8df;margin:10px 0 0;padding-top:12px}
.tt-reflection label{display:block;font-weight:850;margin-bottom:6px;font-size:13px}
.tt-reflection textarea{width:100%;min-height:65px;max-height:130px;resize:vertical;border:1px solid #cfdccf;border-radius:12px;padding:10px;font:inherit;font-size:13px;background:#fff}
.tt-reflection button{border:0;border-radius:10px;background:#28654b;color:white;font-weight:800;padding:9px 14px;margin-top:7px}
.tt-reflection-state{font-size:11px;margin-left:8px;color:#40644d}
.tt-export{margin-top:10px!important;display:block;width:100%;padding:10px!important;border:1px solid #d1dfd4!important;border-radius:11px;background:white!important;color:#2d5841!important;font-weight:800!important}
.tt-version{font-size:10px;border-radius:7px;background:#e2f0e7;padding:3px 6px;color:#27573b;font-weight:850}
.tt-update-toast{position:fixed;top:calc(10px + env(safe-area-inset-top));left:50%;transform:translate(-50%,-100px);opacity:0;z-index:999;background:#235c43;color:white;padding:11px 16px;border-radius:13px;font-size:12px;font-weight:850;box-shadow:0 8px 30px #0002;transition:transform .25s,opacity .25s;max-width:90vw}
.tt-update-toast.on{opacity:1;transform:translate(-50%,0)}
body.tt-focus .topbar,body.tt-focus .realm-panel,body.tt-focus .tt-status,body.tt-focus .bottomnav,body.tt-focus .proc-session-chip,body.tt-focus .footer-note{display:none!important}
body.tt-focus .app{max-width:650px;padding:calc(10px + env(safe-area-inset-top)) 12px 15px;min-height:100dvh}
body.tt-focus .timer-panel{min-height:calc(100dvh - 32px);margin:0;display:flex;flex-direction:column;justify-content:center;padding:14px}
body.tt-focus .tt-toolbar{order:-3}
body.tt-focus .tt-settings{display:none}
body.tt-focus .timer-wrap{margin:auto 0}
body.tt-focus .timer-arena{margin:auto}
body.tt-focus .section-intro{display:none}
body.tt-effects-off .spirit-particle,body.tt-effects-off .spirit-orbit,body.tt-effects-off .spirit-backlight,body.tt-effects-off .spirit-outer-ring,body.tt-effects-off .spirit-inner-ring{animation:none!important}
body.tt-promotion .rank-seal{animation:tt-tier-flash 1s ease-in-out}
@keyframes tt-tier-flash{0%,100%{filter:brightness(1)}30%{filter:brightness(1.65) drop-shadow(0 0 18px #f4c863)}}
@media(max-width:370px){.tt-badge-grid{gap:5px}.tt-status{padding:10px}.tt-toolbar button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.tt-update-toast,.tt-goal-fill,.tt-toolbar button{transition:none!important}.tt-promotion .rank-seal{animation:none!important}}

/* Distinct compact/expanded layout behavior. */
body:not(.tt-compact) .realm-panel{padding:19px 17px 16px}
body:not(.tt-compact) .realm-panel .spirit-frame{transform:scale(1);max-height:none}
body:not(.tt-compact) .topbar{margin-bottom:18px}
body:not(.tt-compact) .timer-panel{margin-top:16px}

/* v3.1.1 — mobile single-screen home and compact process cards */
body .app{padding-bottom:calc(86px + env(safe-area-inset-bottom));}
body .nav-inner{padding:3px 9px 5px;}
body .navbtn{min-height:48px;font-size:11px;gap:2px;border-radius:13px;}
body .navbtn svg{width:19px;height:19px;}
body .proc-header{margin-bottom:8px;gap:8px;align-items:center;}
body .proc-header h2{font-size:20px;}
body .proc-header p{font-size:11px;}
body .proc-toolbar{margin-bottom:6px;}
body .proc-toolbar .proc-tooltab{min-height:35px;padding:6px 8px;font-size:12px;}
body .proc-btn{min-height:35px;padding:6px 9px;font-size:12px;border-radius:10px;}
body .proc-btn.small{min-height:30px;padding:5px 7px;font-size:11px;}
body .proc-card-actions{grid-template-columns:minmax(0,1.05fr) minmax(0,.78fr) 37px;gap:6px;margin-top:6px;}
body .proc-card-actions>.proc-btn{min-height:36px;font-size:12px;padding:6px;}
body .proc-action-menu>summary{height:36px;min-height:36px;width:37px;border-radius:10px;}
body .proc-section-title{margin:9px 0 6px;gap:5px;font-size:14px;}
body .proc-section-title .tt-process-toggle{border:1px solid #d6e4d9;border-radius:9px;background:#eef7ef;min-height:29px;padding:4px 6px;font-size:11px;font-weight:800;color:#226349;white-space:nowrap;}
body .proc-section-title .tt-process-toggle:focus-visible{outline:2px solid #387d58;}
body .proc-stack{gap:7px;}
body .proc-template-grid{grid-template-columns:1fr;}
body.tt-compact:not(.tt-focus) #view-practice.active{display:flex;flex-direction:column;gap:7px;}
body.tt-compact:not(.tt-focus) #view-practice .realm-panel{padding:9px 12px 8px;}
body.tt-compact:not(.tt-focus) #view-practice .rank-head{min-height:80px;grid-template-columns:minmax(0,1fr) 78px;gap:3px;}
body.tt-compact:not(.tt-focus) #view-practice .spirit-frame{width:76px;height:76px;flex:0 0 76px;max-height:76px;transform:scale(.72);transform-origin:center;}
body.tt-compact:not(.tt-focus) #view-practice .rank-name{font-size:clamp(20px,5.7vw,26px);}
body.tt-compact:not(.tt-focus) #view-practice .rank-name.long-name{font-size:clamp(17px,4.8vw,21px);}
body.tt-compact:not(.tt-focus) #view-practice .rank-detail{font-size:11px;}
body.tt-compact:not(.tt-focus) #view-practice .realm-desc-toggle{display:none!important;}
body.tt-compact:not(.tt-focus) #view-practice #currentRealmDesc{display:none;}
body.tt-compact:not(.tt-focus) #view-practice .progress-label{margin-top:5px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-status{margin:0;padding:8px 11px;border-radius:12px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-goal-track{margin-top:5px;height:5px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-status-foot{margin-top:3px;}
body.tt-compact:not(.tt-focus) #view-practice .timer-panel{margin:0;padding:9px 12px 10px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-toolbar{margin:0 0 7px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-toolbar button{min-height:34px;padding:6px 5px;font-size:11px;}
body.tt-compact:not(.tt-focus) #view-practice .tt-settings:not([open]){display:none;}
body.tt-compact:not(.tt-focus) #view-practice .mode-picker{margin-bottom:4px;}
body.tt-compact:not(.tt-focus) #view-practice .timer-wrap{padding-top:2px;}
body.tt-compact:not(.tt-focus) #view-practice .timer-arena{height:130px;width:205px;max-width:100%;}
body.tt-compact:not(.tt-focus) #view-practice .timer-progress-ring{width:156px;height:156px;top:-12px;}
body.tt-compact:not(.tt-focus) #view-practice .presets{margin:2px 0 5px;}
body.tt-compact:not(.tt-focus) #view-practice .preset{min-height:32px;padding:5px 7px;font-size:11px;}
body.tt-compact:not(.tt-focus) #view-practice .small-reset{margin-top:2px;}
/* Only the process overview becomes short; all steps remain available when expanded. */
#view-process.tt-proc-home.tt-proc-small .proc-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head head" "steps meta" "actions actions";column-gap:7px;row-gap:4px;padding:9px 10px;border-radius:13px;}
#view-process.tt-proc-home.tt-proc-small .proc-card-head{grid-area:head;min-width:0;gap:6px;}
#view-process.tt-proc-home.tt-proc-small .proc-card h3{font-size:15px;line-height:1.2;}
#view-process.tt-proc-home.tt-proc-small .proc-rank-row{gap:7px;min-width:0;}
#view-process.tt-proc-home.tt-proc-small .proc-card-head .proc-count{padding:3px 8px;font-size:10px;}
#view-process.tt-proc-home.tt-proc-small .proc-card .proc-sub{display:none;}
#view-process.tt-proc-home.tt-proc-small .proc-template-steps{grid-area:steps;align-self:center;margin:0;min-width:0;}
#view-process.tt-proc-home.tt-proc-small .proc-preview{margin:0;padding:3px 6px;background:#f0f6f1;border-radius:7px;font-size:11px;line-height:1.2;min-height:23px;display:flex;align-items:center;}
#view-process.tt-proc-home.tt-proc-small .proc-template-steps:not([open]) .proc-step-peek{display:none;}
#view-process.tt-proc-home.tt-proc-small .proc-step-toggle{margin:0;justify-content:flex-start;font-size:11px;white-space:nowrap;}
#view-process.tt-proc-home.tt-proc-small .proc-toggle-chevron{font-size:14px;}
#view-process.tt-proc-home.tt-proc-small .proc-template-steps[open]{grid-area:2/1/3/3;min-width:0;}
#view-process.tt-proc-home.tt-proc-small .proc-template-steps[open] .proc-preview{display:block;padding:6px;}
#view-process.tt-proc-home.tt-proc-small .proc-template-steps[open] .proc-step-all{padding-left:24px;max-height:220px;overflow:auto;}
#view-process.tt-proc-home.tt-proc-small .proc-meta-line{grid-area:meta;display:flex;justify-content:flex-end;flex-wrap:nowrap;margin:0;align-self:center;gap:4px;}
#view-process.tt-proc-home.tt-proc-small .proc-mini-chip{padding:3px 6px;font-size:10px;white-space:nowrap;}
#view-process.tt-proc-home.tt-proc-small .proc-meta-line .proc-mini-chip:nth-child(n+2){display:none;}
#view-process.tt-proc-home.tt-proc-small .proc-card:has(.proc-template-steps[open]) .proc-meta-line{display:none;}
#view-process.tt-proc-home.tt-proc-small .proc-card-actions{grid-area:actions;margin:0;gap:5px;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 36px;}
#view-process.tt-proc-home.tt-proc-small .proc-card-actions>.proc-btn{min-height:34px;padding:5px 6px;font-size:12px;}
#view-process.tt-proc-home.tt-proc-small .proc-action-menu>summary{width:36px;height:34px;min-height:34px;}
#view-process.tt-proc-home.tt-proc-small .rank-chip{width:32px;height:32px;font-size:14px;}
#view-process.tt-proc-home.tt-proc-small .proc-section-title{margin:6px 0;}
#view-process.tt-proc-home.tt-proc-small .proc-group-note,#view-process.tt-proc-home.tt-proc-small .proc-import-tools{margin-top:8px;}
/* A genuine release notice with dismiss and refresh controls. */
.tt-release-notice{position:fixed;z-index:300;top:calc(8px + env(safe-area-inset-top));left:50%;width:min(410px,calc(100vw - 24px));transform:translate(-50%,-145%);opacity:0;pointer-events:none;transition:transform .24s ease,opacity .24s ease;display:flex;align-items:center;gap:8px;background:#165b43;color:#fff;border:1px solid #39886b;box-shadow:0 9px 27px #002e1840;border-radius:13px;padding:10px 12px;}
.tt-release-notice.tt-open{transform:translate(-50%,0);opacity:1;pointer-events:auto;}
.tt-release-notice span{flex:1;min-width:0;font-size:12px;font-weight:800;line-height:1.3;}
.tt-release-notice button{border-radius:9px;border:1px solid #ffffff70;min-height:33px;padding:4px 9px;background:#fff;color:#15593e;font-weight:850;font-size:11px;white-space:nowrap;}
.tt-release-notice .tt-release-close{background:transparent;color:#fff;border:0;min-width:29px;padding:3px;}
@media(max-width:380px){
 #view-process.tt-proc-home.tt-proc-small .proc-card h3{font-size:14px;}
 #view-process.tt-proc-home.tt-proc-small .proc-card{padding:8px 9px;}
 #view-process.tt-proc-home.tt-proc-small .proc-meta-line .proc-mini-chip{font-size:9px;}
 body .proc-section-title{font-size:13px;}
 body .proc-section-title .tt-process-toggle{padding:4px 5px;font-size:10px;}
}
@media(max-height:750px){
 body.tt-compact:not(.tt-focus) #view-practice .rank-head{min-height:65px;}
 body.tt-compact:not(.tt-focus) #view-practice .realm-panel{padding:7px 11px;}
 body.tt-compact:not(.tt-focus) #view-practice .timer-arena{height:111px;}
 body.tt-compact:not(.tt-focus) #view-practice .timer-progress-ring{height:139px;width:139px;top:-14px;}
 body.tt-compact:not(.tt-focus) #view-practice .clock-hint{min-height:18px;}
 body.tt-compact:not(.tt-focus) #view-practice .timer-panel{padding:7px 10px;}
}
@media(prefers-reduced-motion:reduce){.tt-release-notice{transition:none;}}


/* TU TAM v3.2 — two-column compact process layout with compact Dao Qua panel. */
#view-process .proc-template-grid {
 display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; align-items:stretch;
}
#view-process .proc-template-grid>.proc-card {
 display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:0!important;
 min-width:0!important; min-height:0!important; padding:9px 8px 8px!important;
 border-radius:13px!important; overflow:visible!important; box-shadow:0 3px 10px #0c3c2110!important;
}
#view-process .proc-template-grid .proc-card-head {
 display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:4px!important;
 min-width:0; height:auto!important; margin:0!important;
}
#view-process .proc-template-grid .proc-rank-row {
 display:flex; align-items:center; gap:5px; flex-wrap:nowrap; min-width:0;
}
#view-process .proc-template-grid .rank-chip {
 display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px;
 border-radius:50%; font-size:14px!important;
}
#view-process .proc-template-grid .proc-card h3 {
 min-width:0; max-width:100%; overflow:hidden; overflow-wrap:anywhere;
 font-size:clamp(12px,3.35vw,14px)!important; line-height:1.18!important;
 display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
}
#view-process .proc-template-grid .proc-count {
 font-size:10px!important; line-height:1.15; padding:3px 6px!important; align-self:flex-start; flex:0 0 auto;
}
#view-process .proc-template-grid .proc-sub{font-size:10px!important;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#view-process .proc-template-grid .proc-template-steps {
 grid-area:auto!important; min-width:0!important; margin:6px 0 0!important;
 flex:1 1 auto; display:block;
}
#view-process .proc-template-grid .proc-preview {
 display:block!important; min-height:0!important; margin:0!important; padding:6px!important;
 background:#eff4ef!important; font-size:10px!important; line-height:1.3!important; border-radius:8px!important;
}
#view-process .proc-template-grid .proc-template-steps:not([open]) .proc-step-peek {
 display:block!important; min-width:0; max-height:33px; overflow:hidden;
}
#view-process .proc-template-grid .proc-peek-line{overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
#view-process .proc-template-grid .proc-peek-line:nth-child(n+3),#view-process .proc-template-grid .proc-peek-more{display:none!important}
#view-process .proc-template-grid .proc-step-toggle {
 margin-top:4px!important; font-size:10px!important; display:flex!important; justify-content:flex-end!important;
}
#view-process .proc-template-grid .proc-toggle-open{font-size:0!important}
#view-process .proc-template-grid .proc-toggle-open::after{content:"Xem bước";font-size:10px!important}
#view-process .proc-template-grid .proc-toggle-close{font-size:10px}
#view-process .proc-template-grid .proc-toggle-chevron{font-size:13px}
#view-process .proc-template-grid .proc-template-steps[open] {
 flex:0 0 auto; display:block!important;
}
#view-process .proc-template-grid .proc-template-steps[open] .proc-step-all {
 max-height:200px; overflow-y:auto; padding-left:22px; margin:5px 0 0;
 font-size:10px; line-height:1.4;
}
#view-process .proc-template-grid .proc-meta-line {
 display:flex!important; flex-wrap:wrap!important; justify-content:flex-start!important; gap:3px!important;
 grid-area:auto!important; margin:5px 0 0!important; align-self:stretch!important;
}
#view-process .proc-template-grid .proc-mini-chip{padding:3px 5px!important;font-size:9px!important;max-width:100%;white-space:normal!important}
#view-process .proc-template-grid .proc-meta-line .proc-mini-chip:nth-child(n+2){display:none!important}
#view-process .proc-template-grid .proc-card:has(.proc-template-steps[open]) .proc-meta-line{display:flex!important}
#view-process .proc-template-grid .proc-card-actions{
 display:grid!important; grid-area:auto!important; grid-template-columns:minmax(0,1fr) minmax(0,.88fr) 30px!important;
 gap:4px!important; padding-top:7px; margin:0!important; align-items:center; margin-top:auto!important;
}
#view-process .proc-template-grid .proc-card-actions>.proc-btn {
 width:100%; min-width:0!important; min-height:32px!important; height:32px!important; padding:4px 2px!important;
 font-size:11px!important; border-radius:9px!important; text-overflow:clip; white-space:nowrap;
}
#view-process .proc-template-grid .proc-action-menu>summary {
 width:30px!important; height:32px!important; min-height:32px!important;
 font-size:16px!important; border-radius:9px!important;
}
#view-process .proc-template-grid .proc-action-menu .proc-action-pop{
 right:0;min-width:145px;z-index:25;
}
#view-process .proc-template-grid .proc-card:has(.proc-action-menu[open]){z-index:30!important}
#view-process .proc-section-title {margin:9px 0 7px!important;}
#view-process .proc-header {margin-bottom:8px!important;}
#view-process .proc-stack{gap:8px!important;}

/* Dao Qua: totals with rank color and optional date range. */
#view-process .dq-panel {
 margin:8px 0 10px; padding:10px 11px; border-radius:15px;
 background:linear-gradient(135deg,#f9faf4,#eef5ec);border:1px solid #d4e2d3;
 box-shadow:0 3px 13px #2047280b;
}
#view-process .dq-head{display:flex;justify-content:space-between;align-items:center;gap:6px}
#view-process .dq-title{display:flex;align-items:center;gap:7px;min-width:0}
#view-process .dq-orb{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:11px;background:linear-gradient(135deg,#eed68e,#f8f1cf);color:#75591f;font-size:19px}
#view-process .dq-title h3{font-size:14px;line-height:1.15;margin:0!important;white-space:nowrap}
#view-process .dq-title h3 strong{font-weight:950;font-variant-numeric:tabular-nums;color:#126449;font-size:17px;margin-left:3px}
#view-process .dq-title p{font-size:10px;line-height:1.2;color:#627d6b;font-weight:700;margin:3px 0 0}
#view-process #procDaoQuaRange {
 max-width:98px;min-width:86px;height:32px;border-radius:9px;border:1px solid #ccdcca;
 background:#fff;color:#21573d;padding:5px 6px;font-size:11px;font-weight:850;flex:0 0 auto
}
#view-process .dq-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
#view-process .dq-cell{
 min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;
 padding:6px 4px;border-radius:9px;border:1px solid #dbe1d4;background:#fff;
 font-variant-numeric:tabular-nums
}
#view-process .dq-cell .dq-rank{display:inline-grid;place-items:center;width:19px;height:20px;border-radius:6px;font-size:11px;font-weight:950}
#view-process .dq-cell strong{font-weight:950;font-size:14px}
#view-process .dq-s .dq-rank,#view-process .dq-earned.dq-s{background:#fff0ba;color:#785311}
#view-process .dq-a .dq-rank,#view-process .dq-earned.dq-a{background:#fce3ef;color:#9d345f}
#view-process .dq-b .dq-rank,#view-process .dq-earned.dq-b{background:#dbf1e5;color:#126346}
#view-process .dq-c .dq-rank,#view-process .dq-earned.dq-c{background:#e8e9ee;color:#596377}
#view-process .dq-earned{display:inline-flex;font-size:10px;font-weight:850;padding:3px 6px;border-radius:7px;white-space:nowrap}
@media(max-width:355px){
 #view-process .proc-template-grid{gap:6px!important}
 #view-process .proc-template-grid>.proc-card{padding:8px 6px!important}
 #view-process .proc-template-grid .proc-card-actions{gap:3px!important;grid-template-columns:minmax(0,1fr) minmax(0,.84fr) 27px!important}
 #view-process .proc-template-grid .proc-action-menu>summary{width:27px!important}
 #view-process .dq-panel{padding:9px 7px}
 #view-process .dq-grid{gap:4px}
 #view-process .dq-cell{padding:6px 2px}
}
@media(max-width:290px){
 #view-process .proc-template-grid{grid-template-columns:1fr!important}
}

/* Detail toggle temporarily uses a single full-width column for long process names. */
#view-process.tt-proc-home:not(.tt-proc-small) .proc-template-grid{grid-template-columns:minmax(0,1fr)!important}
#view-process.tt-proc-home:not(.tt-proc-small) .proc-template-grid>.proc-card{padding:12px!important}
#view-process.tt-proc-home:not(.tt-proc-small) .proc-template-grid .proc-peek-line{font-size:12px}
#view-process.tt-proc-home:not(.tt-proc-small) .proc-template-grid .proc-template-steps:not([open]) .proc-step-peek{max-height:72px}
#view-process.tt-proc-home:not(.tt-proc-small) .proc-template-grid .proc-card h3{font-size:15px!important}
