/* Hallmark · macrostructure: existing portal shell · tone: atmospheric engineering · anchor hue: TEAM navy
 * pre-emit critique: P4 H5 E4 S5 R4 V4 */
:root{--navy:#164879;--ink:#10243d;--muted:#65768d;--action:#1555ef;--canvas:#f4f7fb;--line:#e3eaf3;--white:#fff;--radius:20px;--shadow:0 4px 18px #143c6810;--category-mark-shadow:#0929423d;--category-selected-shadow:#10375b38;--category-hover-shadow:#10375b26;--category-error:#b42318}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:"Noto Sans Thai",Tahoma,sans-serif;font-size:15px;line-height:1.6}
button,input,a{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,input{min-height:44px}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--action);outline-offset:4px}
h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;letter-spacing:-.6px}h2{font-size:22px;line-height:1.5}h3{font-size:19px;line-height:1.5}img{display:block;max-width:100%}
.skip{position:fixed;top:-100px;left:12px;background:white;padding:12px;z-index:100}.skip:focus{top:8px}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:white;border-right:1px solid var(--line);padding:30px 18px 22px;display:flex;flex-direction:column;z-index:20}
.brand img{width:175px;height:auto}.brand{padding:0 8px 35px}.brand small{display:block;text-align:right;margin-top:6px;font-size:11px;letter-spacing:1px;color:var(--muted)}
.nav{display:flex;flex-direction:column;gap:9px}.nav a{display:flex;gap:14px;align-items:center;padding:12px 16px;min-height:50px;border-radius:12px;color:var(--muted);font-weight:600}
.nav a.active{background:#eaf2ff;color:var(--action)}.nav a:hover{background:#f0f5fc}.utility-icon{width:23px;height:23px;flex-shrink:0;display:inline-block}.nav-help{margin-top:auto;border-top:1px solid var(--line);padding-top:16px}.help-button{background:transparent;color:var(--muted);display:flex;align-items:center;gap:12px;padding:12px 16px}
.content{margin-left:224px;padding:30px 36px 48px;max-width:1640px}.topbar{display:flex;align-items:center;gap:28px;margin-bottom:24px}.greeting{flex:1;min-width:0}.greeting p{color:var(--muted);font-size:14px;margin-top:4px}
.search{display:flex;align-items:center;gap:10px;max-width:430px;flex:1;background:#eaf0f7;border:1px solid transparent;border-radius:14px;padding:0 15px;color:var(--muted)}.search:focus-within{border-color:var(--action);background:white}.search input{min-width:0;width:100%;height:48px;background:transparent;border:0;outline:none;color:var(--ink)}.search input:focus-visible{outline:none}.search input::placeholder{color:#72839b}.avatar{width:44px;height:44px;background:var(--navy);color:white;display:grid;place-items:center;border-radius:50%;font-size:17px;font-weight:600;flex-shrink:0}.mobile-avatar{display:none}.desktop-avatar{flex:0 0 44px}
.review-note{display:flex;align-items:center;gap:7px;font-size:11px;color:#68798d;margin-top:8px}.review-dot{width:6px;height:6px;border-radius:50%;background:#d49428}
.banner{display:flex;min-height:244px;border:1px solid #d9e4f1;background:white;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);margin-bottom:28px}
.banner-copy{padding:24px 30px;flex:1;position:relative;z-index:1}.banner-logo{width:184px;height:auto;margin-bottom:14px}.banner h2{font-size:28px;letter-spacing:-.5px}.banner p{color:var(--navy);font-size:16px;margin:4px 0 18px}.primary{background:var(--action);color:white;border-radius:12px;padding:10px 21px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:18px;font-weight:600}.primary:hover{background:#0a43c8}.arrow{font-family:Arial,sans-serif;font-size:24px;line-height:1}
.banner-art{width:37%;background:linear-gradient(120deg,#185d9c,#103b69);display:grid;grid-template-columns:repeat(2,76px);place-content:center;gap:14px;padding:22px 34px;position:relative}
.banner-art:before{content:"";position:absolute;top:0;bottom:0;left:-48px;width:75px;background:white;transform:skewX(-23deg);transform-origin:top}
.banner-art .art-icon{width:76px;height:76px;border-radius:20px;position:relative;object-fit:cover;box-shadow:0 7px 16px #041e4330}.banner-art .art-icon:nth-child(2n){transform:translateY(12px)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.text-button{color:var(--action);background:transparent;padding:4px 8px;display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:13px;font-weight:500}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:25px}
.category{display:flex;align-items:center;gap:14px;text-align:left;padding:15px;background:white;border:1px solid var(--line);border-radius:16px;min-height:100px;transition:border-color .15s,box-shadow .15s}.category:hover,.category.selected{border-color:var(--action);box-shadow:0 3px 14px #1555ef0b}.category.selected{background:#edf4ff}.category strong{font-size:16px;font-weight:600}.category .art-icon{height:58px;width:58px;flex-shrink:0;border-radius:14px}
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tool-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;min-width:0;min-height:210px;box-shadow:var(--shadow)}
.tool-top{display:flex;align-items:center;gap:15px}.art-icon{object-fit:cover;background:#edf2f8}.tool-top .art-icon{width:65px;height:65px;border-radius:17px;flex-shrink:0}.tool-copy{min-width:0}.tool-copy p{font-size:12px;color:var(--muted);margin-top:6px}.tool-card h3{font-size:17px}.tool-meta{font-size:11px;color:#718297;margin:16px 0 13px}.open-tool{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;background:#edf4ff;color:var(--action);border-radius:11px;font-weight:600;margin-top:auto}.open-tool:hover{background:var(--action);color:white}
.bottom-nav{display:none}.empty{grid-column:1/-1;background:white;border:1px solid var(--line);padding:48px 24px;text-align:center;border-radius:var(--radius)}.empty h3{font-size:21px}.empty p{margin:8px 0 20px;color:var(--muted)}.empty .primary{font-size:14px}
.filter-summary{display:flex;gap:10px;align-items:center;margin:0 0 15px;flex-wrap:wrap;color:var(--muted);font-size:13px}.filter-summary button{min-height:36px;background:white;border:1px solid var(--line);padding:4px 12px;border-radius:9px;color:var(--action)}
.detail{max-width:820px;margin:15px auto;background:white;border:1px solid var(--line);border-radius:24px;padding:38px}.detail .art-icon{width:92px;height:92px;border-radius:23px;margin-bottom:22px}.detail h1{font-size:30px}.detail p{color:var(--muted);margin:12px 0 22px;max-width:590px}.detail .notice{background:#f1f6fc;padding:20px;border-radius:14px;border:1px solid var(--line);margin:24px 0}.notice strong{display:block;font-size:16px}.notice p{font-size:14px;margin:8px 0 0}.back{display:inline-flex;align-items:center;gap:10px;color:var(--action);background:transparent;padding:0 6px;min-height:44px;margin-bottom:8px}.account-avatar{margin-bottom:22px}
dialog{max-width:480px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:22px;padding:30px;color:var(--ink);box-shadow:0 20px 60px #10243d33}dialog::backdrop{background:#10243d65}dialog p{color:var(--muted);margin-top:16px;font-size:14px}.close{float:right;background:#eef3f9;border-radius:50%;font-size:24px;width:44px;height:44px;margin:-12px -12px 8px 8px}
.footer-note{margin-top:25px;color:#7a8796;font-size:11px}
@media(min-width:1700px){.content{margin-right:auto}}
@media(max-width:1100px){.sidebar{width:186px;padding:24px 12px}.brand img{width:156px}.content{margin-left:186px;padding:24px}.topbar{gap:18px}.greeting h1{font-size:25px}.category{flex-direction:column;text-align:center;gap:8px;padding:12px}.tool-top{flex-direction:column;align-items:flex-start}.tool-card{padding:17px}.banner h2{font-size:25px}.banner-copy{padding:24px}.banner-art{width:34%;grid-template-columns:repeat(2,62px);gap:12px}.banner-art .art-icon{width:62px;height:62px}}
@media(max-width:767px){.sidebar,.desktop-avatar{display:none}.content{margin:0;padding:22px 16px calc(96px + env(safe-area-inset-bottom));max-width:650px;margin-inline:auto}
.topbar{flex-wrap:wrap;gap:14px;margin-bottom:18px}.mobile-avatar{display:grid;width:44px;height:44px}.greeting h1{font-size:22px}.greeting p{font-size:12px;margin-top:2px}.review-note{font-size:10px;margin-top:4px}.search{max-width:none;flex-basis:100%;order:4;background:#eaf0f7;border-radius:13px}.search input{height:45px}
.banner{min-height:210px;margin-bottom:22px;border-radius:17px}.banner-copy{padding:18px 14px;min-width:0;flex:1}.banner-logo{width:140px;max-width:100%;margin-bottom:12px}.banner h2{font-size:19px;line-height:1.4}.banner p{font-size:11px;margin:7px 0 15px;white-space:normal}.banner .primary{font-size:12px;padding:8px 12px;gap:8px}.banner-art{width:33%;padding:14px 10px;grid-template-columns:repeat(2,42px);gap:7px}.banner-art:before{left:-25px;width:35px;transform:skewX(-11deg)}.banner-art .art-icon{width:42px;height:42px;border-radius:11px}.banner-art .art-icon:nth-child(2n){transform:translateY(8px)}
h2{font-size:21px}.section-head{margin-bottom:9px}.text-button{font-size:12px;padding-right:0}.category-grid{gap:8px;margin-bottom:20px}.category{padding:10px 4px 8px;min-height:98px;border-radius:13px;gap:7px}.category .art-icon{width:49px;height:49px;border-radius:12px}.category strong{font-size:12px}
.tool-grid{grid-template-columns:1fr;gap:12px}.tool-card{flex-direction:row;align-items:center;padding:13px 12px;min-height:103px;box-shadow:none;gap:10px;border-radius:16px}.tool-top{flex:1;flex-direction:row;align-items:center;gap:12px;min-width:0}.tool-top .art-icon{width:52px;height:52px;border-radius:13px}.tool-card h3{font-size:15px}.tool-copy p{font-size:10px;margin-top:4px}.tool-meta{display:none}.open-tool{flex-shrink:0;font-size:12px;margin:0;padding:7px 9px;gap:4px}.open-tool .arrow{font-size:18px}.tool-card:first-child{background:#eaf3ff;border-color:#e0ecfc}
.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);justify-content:space-around;padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:20}.bottom-nav a{min-width:80px;min-height:51px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--muted)}.bottom-nav .utility-icon{width:23px;height:23px}.bottom-nav a.active{color:var(--action);font-weight:600}
.detail{padding:24px;margin:4px 0}.detail h1{font-size:25px}.detail p{font-size:14px}.detail .art-icon{width:76px;height:76px}.footer-note{text-align:center;font-size:10px}.empty{padding:30px 20px}.empty h3{font-size:19px}.filter-summary{font-size:12px}
}
@media(max-width:350px){.greeting h1{font-size:19px}.banner-art{width:27%;grid-template-columns:42px}.banner-art .art-icon:nth-child(n+3){display:none}.banner-art .art-icon:nth-child(2){transform:none}.banner-logo{width:126px}.tool-top{gap:8px}.tool-top .art-icon{width:42px;height:42px;border-radius:10px}.tool-card h3{font-size:13px}.tool-copy p{font-size:10px}.open-tool{font-size:11px;padding:6px}.category .art-icon{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.running-tool .sidebar,.running-tool .topbar,.running-tool .bottom-nav{display:none}
.running-tool .content{margin:0;padding:0;max-width:none}
.runner-bar{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:12px 22px;background:white;border-bottom:1px solid var(--line)}
.runner-bar h1{font-size:19px}.runner-bar .back{margin:0;font-size:14px}.runner-note{font-size:12px;color:var(--muted);margin-left:auto}
.tool-frame{display:block;border:0;width:100%;height:calc(100dvh - 78px);min-height:450px;background:white}.tool-frame[hidden]{display:none}
.runner-status{padding:28px;color:var(--muted)}.runner-status.error{color:#9e2727}.runner-status[hidden]{display:none}.running-tool main>.primary{margin:0 24px 20px}.running-tool main>.primary[hidden]{display:none}
@media(max-width:767px){.runner-bar{gap:4px 16px;padding:8px 12px}.runner-bar h1{font-size:16px}.runner-bar .back{font-size:12px}.runner-note{flex-basis:100%;margin-left:0;font-size:10px}.tool-frame{height:calc(100dvh - 94px);min-height:350px}}
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4
   TEAM GROUP workspace: compact navigation and tool-first desktop layout. */
:root{--nav-active:#e9f1ff;--nav-hover:#f0f5fc;--nav-border:#d6e3f3}
html,body{overflow-x:clip}
.sidebar{width:240px;padding:24px 16px 16px;overflow-y:auto}
.brand{padding:0 12px 24px}.brand img{width:180px}.brand small{text-align:left;letter-spacing:1.2px}
.sidebar-label{font-size:11px;font-weight:600;letter-spacing:.4px;color:var(--muted);padding:0 12px;margin-bottom:8px}
.nav{gap:5px}.nav a{min-height:46px;padding:10px 12px;gap:12px;font-size:14px;border:1px solid transparent;border-radius:10px;white-space:nowrap}
.nav a.active{background:var(--nav-active);border-color:var(--nav-border);color:var(--navy);box-shadow:inset 3px 0 var(--action)}
.nav a:hover,.shortcut:hover{background:var(--nav-hover);color:var(--navy)}
.nav a:active,.shortcut:active{transform:translateY(1px)}
.sidebar-shortcuts{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.shortcut{display:flex;align-items:center;gap:9px;min-height:48px;padding:8px;border-radius:10px;font-size:12px;font-weight:500;color:var(--ink)}
.shortcut .art-icon{width:30px;height:30px;flex-shrink:0;border-radius:8px}.shortcut span:not(.arrow){white-space:nowrap}.shortcut .arrow{font-size:18px;color:var(--muted);margin-left:auto}
.nav-help{margin-top:24px;padding-top:14px}.help-button{width:100%;padding:10px 12px;font-size:13px;border-radius:10px}.help-button:hover{background:var(--nav-hover);color:var(--navy)}
@media(min-width:768px){
.content{margin-left:240px;padding:24px 28px 32px;max-width:1680px}
.topbar{margin-bottom:18px;gap:24px}.greeting h1{font-size:26px}.greeting p{font-size:12px}.review-note{margin-top:4px}
.banner{min-height:172px;margin-bottom:18px;box-shadow:none;border-radius:16px}
.banner-copy{padding:20px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;column-gap:24px}
.banner-logo{display:none}.banner h2{font-size:26px;grid-column:1}.banner p{font-size:14px;grid-column:1;margin:6px 0 0}.banner .primary{grid-column:2;grid-row:1/3;align-self:center;white-space:nowrap;font-size:14px}
.banner-art{width:28%;padding:16px 24px;grid-template-columns:repeat(2,54px);gap:10px}.banner-art .art-icon{width:54px;height:54px;border-radius:14px}.banner-art .art-icon:nth-child(2n){transform:translateY(5px)}
.section-head{margin-bottom:8px}.section-head h2{font-size:20px}.category-grid{gap:12px;margin-bottom:16px}.category{min-height:72px;padding:10px 14px;gap:10px;border-radius:12px;flex-direction:row;text-align:left}.category .art-icon{width:42px;height:42px;border-radius:11px}.category strong{font-size:14px}
.tool-grid{gap:12px}.tool-card{padding:16px;min-height:188px;border-radius:16px;box-shadow:none}.tool-top{gap:10px;flex-direction:row;align-items:center}.tool-top .art-icon{width:50px;height:50px;border-radius:13px}.tool-card h3{font-size:15px}.tool-copy p{font-size:11px;margin-top:4px}.tool-meta{margin:12px 0}.footer-note{margin-top:18px}
}
@media(min-width:1400px){.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1100px){
.sidebar{width:214px;padding:20px 12px}.brand{padding-inline:8px}.brand img{width:164px}.content{margin-left:214px;padding:20px}.shortcut{font-size:11px;gap:7px}.shortcut .art-icon{width:27px;height:27px}
.banner-copy{display:block;padding:20px}.banner h2{font-size:22px}.banner p{margin-bottom:12px}.banner-art{width:30%;grid-template-columns:46px 46px;gap:8px;padding:14px}.banner-art .art-icon{width:46px;height:46px}.category{flex-direction:column;gap:5px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){.sidebar{display:none}}
.running-tool .content{margin:0;padding:0;max-width:none}

/* User-supplied complete banner: preserve all embedded text and artwork. */
.banner.banner-image{display:block;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.banner-image .banner-picture{display:block;width:100%;height:auto;max-width:100%}

/* Hallmark · component: workspace header · tone: compact command bar · states: default · hover · focus */
html,body{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.sidebar::-webkit-scrollbar{width:0;height:0;display:none}
.sidebar{scrollbar-width:none}
.content{padding-top:18px}
.topbar{min-height:68px;margin-bottom:16px;padding:10px 14px;border:1px solid var(--nav-border);border-radius:16px;background:#ffffffcc;box-shadow:0 8px 24px #10375b12;backdrop-filter:blur(12px)}
.greeting{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}.greeting h1{font-size:23px;line-height:1.25}.greeting p{margin:0;font-size:12px}.review-note{margin:0;padding:3px 8px;border:1px solid var(--nav-border);border-radius:999px;background:var(--sky-wash);font-size:10px}.review-dot{width:5px;height:5px}
.search{height:44px;max-width:380px;border-radius:12px}.search input{height:42px}.avatar{width:40px;height:40px;font-size:15px}.desktop-avatar{flex-basis:40px}
@media(max-width:767px){.content{padding-top:12px}.topbar{min-height:0;padding:9px 10px;margin-bottom:14px;border-radius:14px;gap:10px}.greeting{gap:2px 8px}.greeting h1{font-size:20px}.greeting p{font-size:11px}.review-note{font-size:9px;padding:2px 7px}.mobile-avatar{width:40px;height:40px}.search{height:44px}.search input{height:42px}}

/* Compact app launcher: one accessible link per tile, including its icon. */
.tool-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.tool-card.app-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:180px;padding:16px;border-radius:16px;background:var(--white);border:1px solid var(--line);box-shadow:none;transition:background .15s,border-color .15s,transform .15s}
.app-tile>.art-icon{width:60px;height:60px;flex-shrink:0;border-radius:15px}
.app-tile .tool-copy{width:100%}.app-tile .tool-copy h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.app-tile .tool-copy p{font-size:12px;line-height:1.65;margin-top:5px;color:var(--muted)}
.app-version{font-size:10px;color:var(--muted);margin-top:auto}
.tool-card.app-tile:hover{background:var(--nav-hover);border-color:var(--nav-border);transform:translateY(-2px)}
.tool-card.app-tile:active{transform:translateY(0);background:var(--nav-active)}
@media(max-width:767px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-card.app-tile{padding:14px 12px;min-height:174px;gap:10px}.app-tile>.art-icon{width:56px;height:56px;border-radius:14px}.app-tile .tool-copy h3{font-size:13px}.app-tile .tool-copy p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.tool-card.app-tile{transition:none}.tool-card.app-tile:hover{transform:none}}
/* TEAM GROUP atmosphere: navy navigation, cyan accents and warm weather card.
   Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */
:root{--shell-deep:#10375b;--shell-bottom:#092942;--shell-text:#edf6ff;--shell-muted:#b4cfe6;--shell-line:#ffffff24;--shell-active:#ffffff16;--cyan:#40d3df;--sky-wash:#eaf3ff;--teal-wash:#e9faf6;--weather-paper:#fff5e6;--weather-end:#ffe9c9;--weather-ink:#233d51;--weather-muted:#627386;--card-blue:#398bdb;--card-teal:#1da79d;--card-violet:#8976d2;--card-amber:#d6a146;--accent-shadow:0 5px 18px #14497810}
body{background:linear-gradient(135deg,var(--sky-wash),var(--canvas) 48%,var(--teal-wash));background-attachment:fixed}
.sidebar{background:linear-gradient(165deg,var(--shell-deep),var(--shell-bottom));border-right:0;padding-top:18px;color:var(--shell-text)}
.brand{padding:0 10px 18px}.brand img{background:var(--white);padding:7px;border-radius:6px;width:182px}.brand small{color:var(--shell-muted);font-size:10px;margin-top:8px}
.sidebar-label{color:var(--shell-muted)}.nav a,.shortcut,.help-button{color:var(--shell-text)}.nav a{min-height:44px}
.nav a.active{color:var(--white);background:var(--shell-active);border-color:var(--shell-line);box-shadow:inset 3px 0 var(--cyan)}
.nav a:hover,.shortcut:hover,.help-button:hover{background:var(--shell-active);color:var(--white)}
.sidebar-shortcuts{margin-top:16px;padding-top:14px;border-color:var(--shell-line)}.shortcut{min-height:43px}.shortcut .arrow{color:var(--shell-muted)}
.nav-help{margin-top:14px;padding-top:8px;border-color:var(--shell-line)}.help-button{min-height:40px;padding-block:6px}
.sidebar a:focus-visible,.sidebar button:focus-visible{outline-color:var(--cyan)}
.topbar{padding-bottom:16px;border-bottom:1px solid var(--nav-border)}.greeting h1{color:var(--navy)}.search{background:var(--white);border-color:var(--nav-border);box-shadow:var(--accent-shadow)}
.category{background:linear-gradient(125deg,var(--white),var(--sky-wash));border-color:var(--nav-border);box-shadow:var(--accent-shadow)}
.category.selected{background:var(--navy);color:var(--white);border-color:var(--navy)}
.category:nth-child(2){border-bottom:3px solid var(--card-teal)}.category:nth-child(3){border-bottom:3px solid var(--card-amber)}.category:nth-child(4){border-bottom:3px solid var(--card-violet)}.category:first-child{border-bottom:3px solid var(--card-blue)}
.section-head h2{color:var(--navy)}
.tool-card.app-tile{border-top:3px solid var(--card-blue);box-shadow:var(--accent-shadow);background:linear-gradient(165deg,var(--white) 65%,var(--sky-wash))}
.tool-card.app-tile:nth-child(4n+2){border-top-color:var(--card-teal)}.tool-card.app-tile:nth-child(4n+3){border-top-color:var(--card-violet)}.tool-card.app-tile:nth-child(4n){border-top-color:var(--card-amber)}
.tool-card.app-tile:hover{border-color:var(--card-blue);background:var(--white);box-shadow:0 10px 24px #14497820}
.sidebar-weather{margin-top:auto;padding-top:18px}.mobile-weather{display:none}
.weather-card{background:linear-gradient(135deg,var(--weather-paper),var(--weather-end));border:1px solid var(--white);border-radius:16px;padding:14px;color:var(--weather-ink);box-shadow:var(--accent-shadow)}
.weather-eyebrow{font-size:10px;color:var(--weather-muted)}.weather-card .weather-location{font-size:14px;line-height:1.5;margin-top:2px;color:var(--weather-ink)}
.weather-main{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 12px}.weather-temperature{font-size:34px;line-height:1.2;letter-spacing:-1px}.weather-condition{display:block;font-size:10px;color:var(--weather-muted)}.weather-art{font-size:50px;line-height:1.2;filter:drop-shadow(0 5px 7px #ce8d2330)}
.weather-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.weather-stat{padding:7px 6px;border:1px solid var(--white);border-radius:10px;background:#ffffff70;min-width:0}.weather-stat-label{display:block;font-size:10px}.weather-stat-value{display:block;font-size:12px;margin-top:3px;white-space:nowrap}.weather-time{display:block;font-size:8px;color:var(--weather-muted);margin-top:3px}
.weather-message{font-size:10px;line-height:1.6;margin:9px 0;color:var(--weather-muted)}.weather-refresh{width:100%;min-height:36px;border-radius:8px;padding:7px 5px;background:var(--white);border:1px solid var(--nav-border);font-size:11px;font-weight:600;color:var(--navy);white-space:nowrap}.weather-refresh:hover{border-color:var(--card-blue);background:var(--sky-wash)}.weather-refresh:disabled{cursor:wait;opacity:.6}.weather-source{display:block;font-size:8px;margin-top:8px;color:var(--weather-muted);text-align:center;text-decoration:underline}
@media(min-width:768px) and (max-width:1100px){.brand img{width:164px}.weather-card{padding:10px}.weather-stat-value{font-size:11px}.weather-art{font-size:44px}}
@media(max-width:767px){.topbar{padding-bottom:14px}.mobile-weather{display:block;margin:0 0 18px}.mobile-weather .weather-card{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;padding:14px 16px}.mobile-weather .weather-eyebrow,.mobile-weather .weather-location{grid-column:1}.mobile-weather .weather-main{grid-column:1;grid-row:3/5;margin:4px 0}.mobile-weather .weather-stats{grid-column:2;grid-row:1/5;grid-template-columns:1fr}.mobile-weather .weather-stat{padding:5px 9px}.mobile-weather .weather-message{grid-column:1/-1;margin:4px 0}.mobile-weather .weather-refresh{grid-column:1/-1;min-height:40px}.mobile-weather .weather-source{grid-column:1/-1;margin-top:3px}.mobile-weather .weather-time{font-size:9px}.mobile-weather .weather-art{font-size:40px}.mobile-weather .weather-temperature{font-size:32px}}

/* Hallmark · component: category selector · genre: atmospheric · theme: TEAM GROUP
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: selected state uses white text on navy; focus ring remains visible */
.category-grid{align-items:stretch}
.category-grid .category.category-card{position:relative;display:block;min-width:0;min-height:0;padding:0;overflow:hidden;text-align:start;background:var(--white);color:var(--ink);border:1px solid var(--nav-border);border-block-end:3px solid var(--card-blue);border-radius:16px;box-shadow:var(--accent-shadow);transition:transform .15s,box-shadow .15s,background-color .15s}
.category-card:nth-child(2){border-block-end-color:var(--card-teal)}.category-card:nth-child(3){border-block-end-color:var(--card-amber)}.category-card:nth-child(4){border-block-end-color:var(--card-violet)}
.category-card .category-image{width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;object-position:center 68%;background:var(--navy)}
.category-mark{position:absolute;inset-block-start:10px;inset-inline-end:10px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--white);color:var(--navy);font-weight:700;box-shadow:0 3px 10px var(--category-mark-shadow);opacity:0;transform:scale(.8);transition:opacity .15s,transform .15s}
.category-grid .category-card.selected{background:var(--navy);color:var(--white);border-color:var(--navy);box-shadow:0 8px 24px var(--category-selected-shadow)}.category-card.selected .category-mark{opacity:1;transform:scale(1)}
@media(hover:hover) and (pointer:fine){.category-grid .category-card:hover{box-shadow:0 10px 26px var(--category-hover-shadow)}.category-grid .category-card.selected:hover{background:var(--navy);color:var(--white)}}
.category-grid .category-card:active{transform:translateY(1px);box-shadow:var(--accent-shadow)}
.category-grid .category-card:focus-visible{outline:3px solid var(--action);outline-offset:3px}
.category-grid .category-card:disabled{cursor:not-allowed;opacity:.5;transform:none}.category-card[aria-busy="true"]{cursor:wait}.category-card[aria-invalid="true"]{border-color:var(--category-error)}.category-card[data-state="success"] .category-mark{opacity:1;transform:scale(1)}
@media(max-width:767px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-grid .category.category-card{display:block;padding:0;min-height:0;border-radius:14px}.category-card .category-image{width:100%;border-radius:0}.category-mark{width:24px;height:24px;inset-block-start:7px;inset-inline-end:7px}}
@media(prefers-reduced-motion:reduce){.category-grid .category-card:active,.category-mark,.category-card.selected .category-mark{transform:none}}
