/* V3.12.98 • Studio UI Phase II. Additive presentation only; no API or business mutations. */
:root{--space-edge:clamp(14px,2.6vw,30px);--elevation-card:0 2px 8px rgba(18,44,92,.04),0 14px 36px rgba(18,44,92,.055);--elevation-pop:0 16px 44px rgba(15,35,78,.16);--focus-ring:0 0 0 3px rgba(21,101,237,.19);--easing-standard:cubic-bezier(.2,.75,.3,1)}
body{background:#f1f5fb;color:#16263f;overflow-x:hidden}
.shell{padding-inline:var(--space-edge)}
#view{min-width:0;overflow-wrap:break-word}
#app .card,#app .task-card,#app .adm-card,#app .stat{box-shadow:var(--elevation-card)}
#app .card{border:1px solid #dce5f0;border-radius:20px}
#app .card h2,#app .task-section h2{font-size:clamp(1.08rem,2vw,1.35rem);line-height:1.35;letter-spacing:-.025em}
#app .hero{border:1px solid rgba(255,255,255,.18);background:linear-gradient(117deg,#0d6670 0%,#167f86 67%,#1e9088 100%);box-shadow:0 12px 28px rgba(14,106,110,.16)}
#app .hero :is(.sub,.hint){color:#e0eeff}
#tabs.tabs{background:#fff;border:1px solid #dce5ef;box-shadow:0 5px 20px rgba(14,40,84,.075);isolation:isolate}
#tabs .tab{transition:color .16s ease,background-color .16s ease,border-color .16s ease;min-height:48px;line-height:1.35}
#tabs .tab.active{color:var(--tone);background:var(--tint);border-color:color-mix(in srgb,var(--tone) 26%,white)}
#tabs .tab.active .nav-icon{background:var(--tone);color:white}
#tabs .tab:focus-visible{outline:3px solid #398aff;outline-offset:-1px}
#app :is(.hw-module-entry,.hw-entry,.adm-entry,.task-card){transition:box-shadow .16s ease,border-color .16s ease,background-color .16s ease}
#app :is(.hw-module-entry,.hw-entry,.adm-entry){border:1px solid #d6e2f0;box-shadow:var(--elevation-card)}
#app :is(.hw-module-entry,.hw-entry,.adm-entry) :is(b,strong){letter-spacing:-.015em}
#app .task-card{border-color:#d8e2f0;background:#fff}
#app .task-card.task-audio{background:linear-gradient(135deg,#f4f1ff,#fff 55%);border-color:#d9d1f5}
#app .task-card:focus-within{border-color:#7eaef7}
#app :is(.stat,.minis>*,.stats>*){border-radius:17px}
#app .weeknav{border:1px solid #e0e8f2;box-shadow:0 4px 14px rgba(22,53,102,.05)}
#app :is(.primary,.btn-mint,.ghost,.btn-danger){border-radius:14px;min-height:46px;line-height:1.35;letter-spacing:.005em}
#app :is(.primary,.btn-mint):active:not(:disabled){filter:brightness(.94)}
#app :is(.field input,.field textarea,.field select){background:#fff;border:1px solid #cbd8ea;border-radius:13px;min-height:48px}
#app :is(.field input,.field textarea,.field select):focus-visible{outline:0;border-color:#276de1;box-shadow:var(--focus-ring)}
#app :is(.table-wrap,[class*="table-wrap"]){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
#app :is(table){font-variant-numeric:tabular-nums}
#app table :is(th,td){vertical-align:middle}
#app table th{color:#243a58;background:#edf3fa}
#app table tbody tr:nth-child(even){background:rgba(242,246,252,.7)}
#modal:not(.hide){overscroll-behavior:contain}
#modal .modal-card{border:1px solid #dbe6f3;border-radius:22px;box-shadow:var(--elevation-pop);max-width:min(96vw,840px);max-height:min(90dvh,900px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.login-card{border:1px solid #dbe5f2;box-shadow:0 20px 52px rgba(19,52,102,.12)}
.login .ltabs{border-color:#dbe5f2}
.login .ltab{min-height:44px}
:where(#app,#login,#modal) :is(button,a,[role="button"],summary):focus-visible{outline:3px solid #347ff0;outline-offset:3px}
:where(#app,#login,#modal) :is(button,input,select,textarea):disabled{cursor:not-allowed}
:where(#app,#login,#modal) :is(.pill,.tag,.badge){font-weight:650}
:where(#app,#login,#modal) :is(p,.sub,.hint){overflow-wrap:anywhere}
/* Protect media widgets, canvases, waveforms and embedded video from theme transforms. */
:where(.song115-page,.song115-root) :is(canvas,video,iframe){max-width:100%}
/* Bottom navigation: predictable thumb-sized targets, safe area and clear contrast. */
@media(max-width:760px){
  html{scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  body{background:#f3f6fb}
  .shell{padding-inline:14px;padding-bottom:calc(102px + env(safe-area-inset-bottom))}
  #app .card{padding:clamp(14px,3.4vw,20px);margin-bottom:14px;border-radius:18px}
  #tabs.tabs{padding:8px 7px calc(8px + env(safe-area-inset-bottom));gap:2px;border-radius:22px 22px 0 0;box-shadow:0 -8px 28px rgba(16,44,95,.09)}
  #tabs .tab{flex-direction:column;gap:4px;min-height:56px;padding:5px 2px;border-radius:13px;font-size:clamp(10px,2.8vw,12px);white-space:nowrap}
  #tabs .tab .nav-icon{width:34px;height:32px;border-radius:11px}
  #tabs .tab svg{width:20px;height:20px}
  #tabs .tab.active::after{bottom:2px;height:2px}
  #app :is(.hw-module-entry,.adm-entry,.hw-entry){min-height:68px;padding:14px;gap:12px}
  #app :is(.hw-module-entry,.adm-entry,.hw-entry) :is(.hw-entry-icon,.adm-entry-icon){width:42px;height:42px;flex-shrink:0}
  #app :is(.task-card){padding:15px;border-radius:17px}
  #app .hero{padding:18px;border-radius:18px}
  #modal .modal-card{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:19px;padding:16px}
  #app .field{margin-block:12px}
  #app :is(input,select,textarea){font-size:16px}
  #app .table-wrap{border-radius:13px}
}
@media(max-width:380px){#tabs .tab{font-size:10px}#tabs .tab .nav-icon{width:30px;height:30px}.shell{padding-inline:10px}#app .card{padding:13px}}
@media(min-width:761px){#tabs.tabs{top:12px}#tabs .tab{min-width:90px}#app .card{padding:22px}}
@media(hover:hover){#app .hw-module-entry:hover,#app .adm-entry:hover,#app .hw-entry:hover{border-color:#a1bfed;box-shadow:0 12px 28px rgba(22,64,122,.12)}}
@media(prefers-reduced-motion:reduce){#tabs .tab,#app :is(.hw-module-entry,.hw-entry,.adm-entry,.task-card){transition:none!important}}
@media print{#tabs.tabs{display:none!important}body{background:white!important}#app .card,#app .task-card{box-shadow:none!important}}
