:root{--paper:#f6f6f0;--ink:#344332;--muted:#7e8878;--green:#2a8431;--line:#dfe4d8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}button,input{font:inherit}button,a,input{outline-offset:4px}button{cursor:pointer;border:0;border-radius:9px;color:inherit}button:disabled{opacity:.55;cursor:wait}input{width:100%;border:1px solid #d7ddd0;border-radius:9px;padding:13px 14px;background:#fff;color:var(--ink)}input:focus{outline:2px solid #9cad8c;outline-offset:1px}button:focus-visible,a:focus-visible{outline:2px solid #6b815c}label{display:block;font-size:12px;font-weight:500}label input{margin-top:8px}form label{margin:23px 0}.brand{display:flex;align-items:center;gap:9px;font-size:28px;font-weight:500;letter-spacing:-1px;text-decoration:none;color:var(--ink)}.brand span{font-size:23px}.brand b{font-weight:350;color:#849174}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:600;color:#859274}.muted,.hint{color:var(--muted);line-height:1.7}.hint{font-size:11px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:500;letter-spacing:-.035em}.primary,.secondary,.danger{padding:12px 17px;font-size:12px;font-weight:500}.primary{background:var(--green);color:#fff}.primary:hover{background:#236f29}.secondary{background:#edf0e6;border:1px solid #dce2d1}.danger{background:#91462f;color:#fff}.error{background:#fff0e6;color:#944523;padding:12px;border-radius:8px;font-size:12px;line-height:1.6}.notice{padding:13px 16px;border:1px solid #d6dfc7;background:#edf3e2;border-radius:10px}.notice.error{background:#fff0e6;color:#944523}small{color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#boot{padding:40px;color:var(--muted)}#login-screen{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-landscape{position:relative;overflow:hidden;background:linear-gradient(155deg,#e5e9d9,#d9e2c7);padding:45px 9%;min-height:700px}.login-copy{position:relative;z-index:2;margin-top:90px}.login-copy h1{font-size:clamp(38px,4.4vw,66px);line-height:1.1;margin-bottom:24px}.login-copy>p:last-child{max-width:330px;color:#718063;font-size:13px;line-height:1.9}.login-footer{position:absolute;bottom:22px;font-size:10px;color:#80916e}.login-form-wrap{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px 10%}.login-form-wrap form{max-width:355px;width:100%}.login-form-wrap h2{font-size:33px;margin:15px 0}.login-form-wrap>small{margin-top:65px;font-size:10px}.password-input{display:flex;align-items:center;position:relative}.password-input input{padding-right:75px}.password-input button{position:absolute;right:7px;top:15px;background:transparent;padding:9px;font-size:10px;color:#7a8a6b}#login-submit{display:flex;justify-content:space-between;width:100%;padding:15px;margin:28px 0 18px}.garden-art{position:absolute;left:0;right:0;bottom:45px;height:260px;pointer-events:none}.sun{position:absolute;width:50px;height:50px;border-radius:50%;background:#f7df9a;top:0;right:14%;box-shadow:0 0 60px #ffedb36e}.cloud{position:absolute;width:180px;height:36px;border-radius:60%;background:#f8faed88;top:0;left:5%;animation:cloud 45s ease-in-out infinite alternate}.cloud:before,.cloud:after{content:'';position:absolute;background:#f8faedaa;border-radius:50%;width:70px;height:60px;bottom:5px;left:25px}.cloud:after{width:90px;height:80px;left:65px}.cloud.c2{left:60%;top:60px;transform:scale(.7);opacity:.45;animation-duration:60s}.island{position:absolute;width:300px;height:160px;left:50%;top:80px;transform:translateX(-50%) rotate(-20deg) skew(20deg);background:#b6c58f;border:1px solid #d1dcb8;box-shadow:-9px 13px #b5a37a}.row{position:absolute;height:22px;width:85%;left:8%;background:#a6a06c66;top:20px}.row:nth-child(2){top:52px}.row:nth-child(3){top:84px}.row:nth-child(4){top:116px}.tree{position:absolute;top:5px;left:25px;width:34px;height:34px;background:#638055;border-radius:43%;box-shadow:inset 5px 5px #a7bc76,4px 7px 4px #56683c33;transform:skew(-20deg) rotate(20deg)}.tree:after{content:'';position:absolute;width:5px;height:5px;background:#e7be77;border-radius:50%;left:10px;top:18px;box-shadow:12px -7px #e7be77}.t2{left:120px;top:38px;background:#7e9760}.t3{left:220px;top:2px}.t4{left:42px;top:95px}.t5{left:230px;top:99px;background:#94a96c}.t6{left:154px;top:100px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:33px 22px 20px;border-right:1px solid var(--line);background:#f0f2e8;display:flex;flex-direction:column}.sidebar>.eyebrow{margin:52px 12px 15px;font-size:9px}nav{display:flex;flex-direction:column;gap:6px}nav button{display:flex;gap:12px;align-items:center;padding:13px 12px;background:transparent;color:#7b8771;text-align:left}nav button.active{background:#e0e7d2;color:#475e3a}nav button span{flex:1;font-size:12px}nav b{font-size:9px;font-weight:500;background:#f6f7ef;padding:3px 6px;border-radius:5px}.sidebar-note{margin:auto 9px 26px;padding-top:45px;color:#8a977c}.sidebar-note>span{font-size:8px;letter-spacing:.14em}.sidebar-note p{font-size:12px;line-height:1.8;margin-top:12px}.seed-icon{font-size:52px;color:#abb89a}.user-block{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px}.user-block>span{width:32px;height:32px;background:#dfe7d2;border-radius:50%;display:grid;place-items:center;color:#6a8055}.user-block strong{display:block;font-size:12px;font-weight:500}.user-block small{font-size:9px}.user-block button{margin-left:auto;background:transparent;font-size:20px}.hub-main{margin-left:232px;padding:38px clamp(24px,4.5vw,74px) 18px;max-width:1650px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}header .eyebrow{font-size:9px;margin-bottom:9px}header h1{font-size:32px;margin:0}.hero{display:flex;justify-content:space-between;position:relative;overflow:hidden;border:1px solid #dce4cf;border-radius:19px;padding:32px 36px;background:linear-gradient(115deg,#e9eedc,#f4f4e8);margin-bottom:35px}.hero h2{font-size:32px;line-height:1.2;margin:13px 0}.hero p{font-size:12px;color:#829074}.hero button{padding:10px 0;background:none;font-size:11px;font-weight:600}.hero-circle{width:220px;height:220px;margin-right:25px;border:1px solid #b9c89f66;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative}.hero-circle:before{content:'';position:absolute;inset:18px;border:1px solid #b9c89f66;border-radius:50%}.hero-circle span{font-size:136px;line-height:1;color:#7c9567;transform:rotate(15deg)}.hero-circle i{position:absolute;bottom:14px;font-size:8px;font-style:normal;letter-spacing:.1em;color:#8e9d7c}.section-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:21px}.section-tools h2{font-size:17px;margin:0}.section-tools h2 span{font-size:11px;color:#9aa28f;margin-left:6px}.section-tools>div{display:flex;gap:10px}.search input{padding:10px 13px;font-size:11px;width:205px;margin:0;background:#fbfcf7}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{border:1px solid var(--line);border-radius:14px;background:#fcfcf8;overflow:hidden;transition:transform .16s,box-shadow .16s}.card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #364c2310}.card-preview{width:100%;height:165px;background:#e6ecda;display:block;border:0;border-radius:0;padding:12px;position:relative}.card-preview svg{width:100%;height:100%}.card-content{padding:18px}.card h3{font-size:16px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}.card-content p{font-size:10px;color:#89957d;line-height:1.7;margin-bottom:14px}.card .metrics{display:flex;gap:10px;font-size:10px;color:#788a68;padding-bottom:14px}.card .actions{display:flex;gap:9px;border-top:1px solid #e9ecdf;padding-top:12px}.card .actions button{background:none;font-size:10px;padding:4px 0;color:#7a8b6b}.card .actions .open{color:#46613a;margin-right:auto;font-weight:600}.card .actions .delete{color:#a2806b}.empty{text-align:center;padding:60px 15px;color:#849378}.empty>span{font-size:36px;color:#aab999}.empty h3{font-size:22px;margin:15px 0 9px}.empty p{font-size:12px}.empty button{margin-top:12px}.panel-intro{font-size:13px;color:#7b8971;line-height:1.8;max-width:630px;margin-bottom:30px}.templates{grid-template-columns:repeat(2,minmax(0,1fr))}.templates .card-preview{height:220px}.templates .card-content{padding:24px}.templates .eyebrow{font-size:8px;margin-bottom:8px}.templates h3{font-size:21px}.templates .card-content>p{font-size:12px;min-height:40px}.tags{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0 20px}.tags span{padding:5px 8px;border:1px solid #dfe6d5;border-radius:6px;font-size:9px;color:#879577}.templates .primary{width:100%;text-align:left}.template-hint{margin-top:25px}.hub-footer{margin-top:45px;padding-top:19px;border-top:1px solid var(--line);font-size:10px;color:#8c9881;display:flex;justify-content:space-between}.settings-card{background:#fffefa;border:1px solid var(--line);border-radius:15px;padding:28px;max-width:480px}.settings-card h2{font-size:24px}.settings-card .primary{width:100%}.form-message{font-size:12px;line-height:1.6;margin:15px 0 0}.users-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px}.users-layout ul{padding:0;list-style:none}.users-layout li{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.users-layout li small{font-size:10px}.setup-notice{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid #e1dabc;background:#f6f0df;border-radius:10px;font-size:11px;margin-bottom:22px;line-height:1.6}.setup-notice button{background:none;white-space:nowrap;color:#8c7546;font-size:11px}dialog{border:1px solid #e0e4d8;border-radius:18px;max-width:460px;width:calc(100% - 32px);padding:27px;background:#fcfcf7;color:var(--ink);box-shadow:0 30px 80px #2630213b}dialog::backdrop{background:#29372660;backdrop-filter:blur(4px)}dialog h2{font-size:28px;margin:14px 0}dialog p{font-size:12px;line-height:1.7}.dialog-top{display:flex;justify-content:space-between}.dialog-top button{background:none;font-size:22px}.dialog-top .eyebrow{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
@keyframes cloud{to{translate:35px 0}}@media(min-width:1450px){.card-grid:not(.templates){grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-circle{margin:0;width:190px;height:190px}.hero h2{font-size:28px}.sidebar{width:202px}.hub-main{margin-left:202px;padding:30px}.section-tools{align-items:flex-start}.section-tools>div{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:760px){#login-screen{grid-template-columns:1fr}.login-landscape{min-height:250px;padding:23px}.login-copy{margin-top:27px}.login-copy h1{font-size:34px}.login-copy>p:last-child,.login-footer{display:none}.garden-art{left:auto;width:220px;right:-30px;bottom:0;transform:scale(.65);transform-origin:bottom right}.login-form-wrap{padding:32px 24px}.login-form-wrap>small{margin-top:28px}.sidebar{position:relative;width:100%;padding:18px;border:0;border-bottom:1px solid var(--line)}.sidebar>.eyebrow,.sidebar-note{display:none}.sidebar nav{margin-top:20px;flex-direction:row;overflow:auto;gap:3px}.sidebar nav button{padding:10px;white-space:nowrap;gap:7px}.sidebar nav b{display:none}.user-block{position:absolute;right:18px;top:20px;border:0;padding:0}.user-block div{display:none}.hub-main{margin:0;padding:26px 18px}.hero{padding:23px}.hero-circle{display:none}.hero h2{font-size:30px}.card-grid,.templates{grid-template-columns:1fr 1fr;gap:12px}.card-content{padding:13px}.card-preview{height:135px}.card .actions{flex-wrap:wrap}.templates .card-preview{height:155px}.templates .card-content{padding:16px}.templates h3{font-size:18px}.section-tools{flex-direction:column}.section-tools>div{width:100%;justify-content:space-between}.search{flex:1}.search input{width:100%}.users-layout{grid-template-columns:1fr}.setup-notice{align-items:flex-start;flex-direction:column;gap:6px}.hub-footer span{display:none}}@media(max-width:420px){.card-grid,.templates{grid-template-columns:1fr}.card-preview{height:170px}.templates .card-preview{height:190px}header h1{font-size:27px}.sidebar nav button span{font-size:10px}.sidebar nav button{gap:5px;padding:9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* NEW MODERN HUB STYLES (Matching Reference Design)
   Scoped to html body #hub to guarantee priority over legacy stylesheets.
   ========================================================================== */
html body #hub {
  position: relative;
  min-height: 100vh;
  background: #fbfcf9;
}

html body #hub .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: #fbfcf9;
  border-right: 1px solid #e5ede0;
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-sizing: border-box;
}

html body #hub .sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 30px;
  padding: 0 8px;
}

html body #hub .sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

html body #hub .sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #405543;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
}

html body #hub .sidebar nav button:hover {
  background: #edf4e8;
  color: #1a3d22;
}

html body #hub .sidebar nav button.active {
  background: #e2eedc;
  color: #173f20;
  font-weight: 600;
  border-color: transparent;
}

html body #hub .sidebar nav button .nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

html body #hub .sidebar nav button span {
  flex: 1;
}

html body #hub .sidebar nav button .nav-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #edf2e8;
  color: #415945;
}

html body #hub .sidebar nav button.active .nav-badge {
  background: #ffffff;
  color: #173f20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html body #hub .sidebar .user-block {
  border-top: 1px solid #e7ede2;
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

html body #hub .sidebar .user-block #avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dfeada;
  color: #23512e;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

html body #hub .sidebar .user-block .user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

html body #hub .sidebar .user-block .user-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #1c3322;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #hub .sidebar .user-block .user-info small {
  font-size: 11px;
  color: #6e8271;
}

html body #hub .sidebar .user-block #logout {
  background: transparent;
  border: 0;
  padding: 6px;
  border-radius: 8px;
  color: #7a8e7e;
  cursor: pointer;
  transition: all 0.15s ease;
  display: grid;
  place-items: center;
}

html body #hub .sidebar .user-block #logout:hover {
  background: #feebeb;
  color: #c93b3b;
}

html body #hub .sidebar .user-block #logout svg {
  width: 18px;
  height: 18px;
}

/* Hub Main & Modern Header */
html body #hub .hub-main {
  margin-left: 252px;
  min-height: 100vh;
  background: #fbfcf9;
  padding: 36px clamp(24px, 4vw, 56px) 60px;
  box-sizing: border-box;
  max-width: 1560px;
}

html body #hub .hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  border-bottom: none;
  padding-bottom: 0;
}

html body #hub .hub-header > .saf-preferences {
  display: none !important;
}

html body #hub .hub-header-left h1 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 29px;
  font-weight: 700;
  color: #19311f;
  margin: 0 0 4px 0;
  letter-spacing: -0.03em;
}

html body #hub .hub-header-left .hub-subtitle {
  font-size: 13.5px;
  color: #647767;
  margin: 0;
}

html body #hub .hub-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

html body #hub .btn-primary-green {
  background: #2a8431;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

html body #hub .btn-primary-green:hover {
  background: #236f29;
}

html body #hub .btn-secondary-import {
  background: #ffffff;
  color: #225336;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d4dfce;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

html body #hub .btn-secondary-import:hover {
  background: #f4f8f1;
  border-color: #c2d2bb;
}

html body #hub .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

html body #hub .header-divider {
  width: 1px;
  height: 24px;
  background: #e0e8dc;
  margin: 0 2px;
}

html body #hub .btn-icon-head {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dce5d6;
  display: grid;
  place-items: center;
  color: #4d6050;
  cursor: pointer;
  transition: all 0.15s ease;
}

html body #hub .btn-icon-head:hover {
  background: #f4f8f1;
}

html body #hub .btn-icon-head svg {
  width: 18px;
  height: 18px;
}

html body #hub .user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #dce5d6;
}

html body #hub .user-chip .user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfeada;
  color: #23512e;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

html body #hub .user-chip .user-chip-chevron {
  width: 16px;
  height: 16px;
  color: #7a8e7e;
}

/* Resume Banner */
html body #hub .resume-banner {
  background: #ffffff;
  border: 1px solid #e3ede0;
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

html body #hub .resume-banner[hidden] {
  display: none !important;
}

html body #hub .resume-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html body #hub .resume-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6f8572;
  text-transform: uppercase;
}

html body #hub .resume-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

html body #hub .resume-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eef4e8;
  border: 1px solid #dbe6d5;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

html body #hub .resume-thumb svg {
  width: 100%;
  height: 100%;
}

html body #hub .resume-details {
  display: flex;
  flex-direction: column;
}

html body #hub .resume-title {
  font-size: 16px;
  font-weight: 700;
  color: #19311f;
  line-height: 1.3;
}

html body #hub .resume-time {
  font-size: 12.5px;
  color: #718674;
}

html body #hub .btn-resume {
  background: #2a8431;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

html body #hub .btn-resume:hover {
  background: #236f29;
}

html body #hub .btn-resume svg {
  width: 16px;
  height: 16px;
}

/* Toolbar */
html body #hub .hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

html body #hub .hub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #edf3e8;
  padding: 4px;
  border-radius: 12px;
}

html body #hub .hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #4d6250;
  cursor: pointer;
  transition: all 0.15s ease;
}

html body #hub .hub-tab:hover {
  color: #1a3820;
}

html body #hub .hub-tab.active {
  background: #ffffff;
  color: #1a4223;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

html body #hub .hub-tab .tab-icon {
  width: 14px;
  height: 14px;
}

html body #hub .hub-tab-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #dfecda;
  color: #1a4223;
}

html body #hub .hub-tab.active .hub-tab-badge {
  background: #e9f2e5;
  color: #173d1f;
}

html body #hub .hub-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

html body #hub .search-box {
  position: relative;
  display: flex;
  align-items: center;
}

html body #hub .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #758977;
  pointer-events: none;
}

html body #hub .search-box input {
  height: 38px;
  width: 220px;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid #dbe5d6;
  background: #ffffff;
  font-size: 13px;
  color: #233b28;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

html body #hub .search-box input:focus {
  border-color: #76a87b;
  box-shadow: 0 0 0 3px rgba(118, 168, 123, 0.15);
}

html body #hub .sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

html body #hub .sort-wrapper select {
  height: 38px;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 14px;
  border-radius: 10px;
  border: 1px solid #dbe5d6;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #2b4130;
  cursor: pointer;
  outline: none;
}

html body #hub .sort-chevron {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  color: #768a78;
  pointer-events: none;
}

html body #hub .view-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5d6;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px;
}

html body #hub .view-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: #758977;
  cursor: pointer;
  transition: all 0.15s ease;
}

html body #hub .view-btn svg {
  width: 16px;
  height: 16px;
}

html body #hub .view-btn:hover {
  color: #225336;
}

html body #hub .view-btn.active {
  background: #edf4e8;
  color: #1a4223;
}

/* Cards Grid */
html body #hub .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

html body #hub .card {
  background: #ffffff;
  border: 1px solid #e3eae0;
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: visible !important;
}

html body #hub .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 60, 35, 0.08);
  border-color: #cbdcc5;
}

html body #hub .card-preview-wrap {
  position: relative;
  height: 190px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background-color: #f3f7ef;
  background-image: linear-gradient(#e4ece0 1px, transparent 1px), linear-gradient(90deg, #e4ece0 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid #e7efe3;
}

html body #hub .card-preview-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

html body #hub .card-preview-btn svg {
  width: 100%;
  height: 100%;
  max-height: 160px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

html body #hub .card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(220, 230, 215, 0.9);
  display: grid;
  place-items: center;
  color: #768a78;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 5;
}

html body #hub .card-fav-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

html body #hub .card-fav-btn.is-favorite {
  color: #f5a623;
}

html body #hub .card-fav-btn svg {
  width: 18px;
  height: 18px;
}

html body #hub .card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

html body #hub .card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

html body #hub .card-title, html body #hub .card h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  color: #19311f;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}

html body #hub .card-title:hover, html body #hub .card h3:hover {
  color: #225336;
}

html body #hub .card-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

html body #hub .card-menu-trigger {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #768a78;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

html body #hub .card-menu-trigger:hover {
  background: #edf4e8;
  color: #1a3820;
}

html body #hub .card-menu-trigger svg {
  width: 18px;
  height: 18px;
}

/* Card Dropdown Menu */
html body #hub .card-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border: 1px solid #dce5d6;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  min-width: 155px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html body #hub .card-dropdown[hidden] {
  display: none !important;
}

html body #hub .card-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #314635;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

html body #hub .card-dropdown-item:hover {
  background: #edf4e8;
  color: #17381f;
}

html body #hub .card-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

html body #hub .card-dropdown-item.item-danger {
  color: #c93b3b;
}

html body #hub .card-dropdown-item.item-danger:hover {
  background: #feebeb;
  color: #b72b2b;
}

html body #hub .dropdown-divider {
  height: 1px;
  background: #e5ede0;
  margin: 4px 6px;
}

html body #hub .card-time {
  font-size: 13px;
  color: #647767;
  margin: 0 0 16px 0;
}

html body #hub .card-metrics-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

html body #hub .metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f4f8f1;
  border: 1px solid #e2ede0;
  font-size: 12px;
  font-weight: 500;
  color: #3e5342;
}

html body #hub .metric-svg {
  width: 14px;
  height: 14px;
  color: #68826d;
  flex-shrink: 0;
}

html body #hub .card-footer-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2e8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html body #hub .card-open-link {
  border: none;
  background: transparent;
  color: #225336;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, gap 0.15s ease;
}

html body #hub .card-open-link:hover {
  color: #1a422a;
  gap: 8px;
}

html body #hub .card-open-link svg {
  width: 15px;
  height: 15px;
}

/* List View Mode */
html body #hub .card-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html body #hub .card-grid.view-list .card {
  flex-direction: row;
  align-items: center;
}

html body #hub .card-grid.view-list .card-preview-wrap {
  width: 170px;
  height: 115px;
  flex-shrink: 0;
  border-radius: 15px 0 0 15px;
  border-bottom: none;
  border-right: 1px solid #e7efe3;
}

html body #hub .card-grid.view-list .card-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  gap: 20px;
}

html body #hub .card-grid.view-list .card-header-row {
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0;
  min-width: 220px;
}

html body #hub .card-grid.view-list .card-time {
  margin-bottom: 0;
}

html body #hub .card-grid.view-list .card-metrics-row {
  margin-bottom: 0;
}

html body #hub .card-grid.view-list .card-footer-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Inspiration Footer */
html body #hub .hub-footer-inspiration {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 14px 0;
}

html body #hub .btn-inspiration {
  background: #ffffff;
  border: 1px solid #dce5d6;
  border-radius: 9999px;
  padding: 10px 22px;
  color: #415544;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

html body #hub .btn-inspiration:hover {
  background: #f2f7ef;
  border-color: #cbdec5;
  color: #1a3920;
}

html body #hub .inspire-sprout {
  width: 18px;
  height: 18px;
  color: #225336;
}

/* Empty State & Notices */
html body #hub .empty {
  text-align: center;
  padding: 60px 15px;
  color: #647767;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #dce5d6;
}

html body #hub .empty > span {
  font-size: 38px;
  color: #a3b89e;
}

html body #hub .empty h3 {
  font-size: 20px;
  margin: 12px 0 8px;
  color: #19311f;
}

html body #hub .empty p {
  font-size: 13px;
  margin-bottom: 16px;
}

/* Templates & Account Panels */
html body #hub .panel-intro {
  font-size: 14px;
  color: #647767;
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 24px;
}

html body #hub .template-filters {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 24px;
}

html body #hub .template-filters button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #dce5d6;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  color: #405543;
  cursor: pointer;
  transition: all 0.15s ease;
}

html body #hub .template-filters button.active {
  background: #e2eedc;
  color: #1a4223;
  border-color: #cbdcc5;
  font-weight: 600;
}

html body #hub .templates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body #hub .templates .card-preview-wrap {
  height: 220px;
}

html body #hub .templates .card-content {
  padding: 22px;
}

html body #hub .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

html body #hub .tags span {
  padding: 4px 8px;
  border: 1px solid #dfe6d5;
  border-radius: 6px;
  font-size: 10px;
  color: #49634e;
  background: #f6faf2;
}

html body #hub .settings-card {
  background: #ffffff;
  border: 1px solid #dce5d6;
  border-radius: 16px;
  padding: 28px;
  max-width: 500px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

html body #hub .settings-card h2 {
  font-size: 22px;
  margin: 10px 0;
  color: #19311f;
}

html body #hub .settings-card .primary {
  width: 100%;
  margin-top: 18px;
}

html body #hub .users-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(420px, 1.2fr);
  gap: 25px;
}

html body #hub .users-layout ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

html body #hub .users-layout li.access-item {
  padding: 14px 0;
  border-bottom: 1px solid #e7ede2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

html body #hub .access-identity strong {
  display: block;
  font-size: 14px;
}

html body #hub .access-identity .access-meta {
  display: block;
  font-size: 12px;
  color: #3f6045;
  margin: 2px 0 4px;
}

html body #hub .access-identity small {
  font-size: 11px;
  color: #798e7d;
}

html body #hub .access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

html body #hub .access-action {
  background: #f2f7ef;
  color: #23462a;
  border: 1px solid #cfdecd;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

html body #hub .access-action:hover {
  background: #e2eedc;
}

html body #hub .audit-card {
  margin-top: 24px;
  max-width: none;
}

html body #hub .audit-card ol {
  padding-left: 20px;
}

html body #hub .audit-card li {
  padding: 8px 0;
  border-bottom: 1px solid #e7ede2;
  font-size: 12px;
}

/* Dialogs */
dialog {
  border: 1px solid #dce5d6;
  border-radius: 18px;
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 26px;
  background: #ffffff;
  color: #19311f;
  box-shadow: 0 25px 70px rgba(25, 45, 30, 0.22);
}

dialog::backdrop {
  background: rgba(20, 32, 23, 0.45);
  backdrop-filter: blur(4px);
}

dialog h2 {
  font-size: 24px;
  margin: 12px 0 8px;
}

dialog .dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

dialog .dialog-top button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #768a78;
}

dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
  html body #hub .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html body #hub .sidebar {
    position: relative;
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #e5ede0;
  }
  html body #hub .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  html body #hub .sidebar .user-block {
    display: flex;
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
    padding: 2px 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: center;
    gap: 8px;
    z-index: 10;
  }
  html body #hub .sidebar .user-block .user-info {
    display: none;
  }
  html body #hub .sidebar .user-block #avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }
  html body #hub .sidebar .user-block #logout,
  html body #hub .sidebar .user-block .logout-btn,
  html body #hub .sidebar .user-block button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    background: #fdf3f3;
    border: 1px solid #f3d4d4;
    border-radius: 9px;
    color: #c93b3b;
    cursor: pointer;
  }
  html body #hub .sidebar .user-block #logout svg,
  html body #hub .sidebar .user-block button svg {
    width: 18px;
    height: 18px;
  }
  html[data-theme="dark"] body #hub .sidebar .user-block #logout,
  html[data-theme="dark"] body #hub .sidebar .user-block .logout-btn,
  html[data-theme="dark"] body #hub .sidebar .user-block button {
    background: #2e1d1b;
    border-color: #522d29;
    color: #f28b82;
  }
  html body #hub .hub-main {
    margin-left: 0;
    padding: 24px 18px 40px;
  }
  html body #hub .card-grid {
    grid-template-columns: 1fr;
  }
  html body #hub .users-layout {
    grid-template-columns: 1fr;
  }
  html body #hub .resume-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  html body #hub .btn-resume {
    width: 100%;
    justify-content: center;
  }
  html body #hub .hub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  html body #hub .hub-tools-right {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  html body #hub .search-box {
    flex: 1 1 100%;
  }
  html body #hub .search-box input {
    width: 100%;
  }
}

/* Dark Theme Overrides */
html[data-theme="dark"] body #hub,
html[data-theme="dark"] #hub .hub-main {
  background: #141b16;
  color: #e2ece4;
}

html[data-theme="dark"] #hub .sidebar {
  background: #17211a;
  border-color: #2b3b2f;
}

html[data-theme="dark"] #hub .sidebar nav button {
  color: #b5c7b8;
}

html[data-theme="dark"] #hub .sidebar nav button:hover {
  background: #233327;
  color: #e5f1e7;
}

html[data-theme="dark"] #hub .sidebar nav button.active {
  background: #2a3e30;
  color: #edf7ef;
}

html[data-theme="dark"] #hub .sidebar nav button .nav-badge {
  background: #223026;
  color: #abc0af;
}

html[data-theme="dark"] #hub .sidebar nav button.active .nav-badge {
  background: #1a261d;
  color: #c7decb;
}

html[data-theme="dark"] #hub .sidebar .user-block {
  border-color: #2b3b2f;
}

html[data-theme="dark"] #hub .sidebar .user-block #avatar,
html[data-theme="dark"] #hub .user-chip-avatar {
  background: #283c2e;
  color: #cde3d2;
}

html[data-theme="dark"] #hub .sidebar .user-block strong {
  color: #e2ece4;
}

html[data-theme="dark"] #hub .sidebar .user-block small {
  color: #8c9e90;
}

html[data-theme="dark"] #hub .sidebar .user-block #logout-button {
  color: #b5c7b8;
}

html[data-theme="dark"] #hub .sidebar .user-block #logout-button:hover {
  background: #2b2220;
  color: #f29c94;
}

html[data-theme="dark"] #hub .hub-header-left h1 {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .hub-header-left .hub-subtitle {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .btn-secondary-import,
html[data-theme="dark"] #hub .btn-icon-head,
html[data-theme="dark"] #hub .user-chip {
  background: #1f2b22;
  border-color: #314435;
  color: #d8e5db;
}

html[data-theme="dark"] #hub .btn-secondary-import:hover,
html[data-theme="dark"] #hub .btn-icon-head:hover,
html[data-theme="dark"] #hub .user-chip:hover {
  background: #28382c;
  border-color: #3f5744;
  color: #edf5ee;
}

html[data-theme="dark"] #hub .resume-banner {
  background: #1c271f;
  border-color: #2f4032;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] #hub .resume-title {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .resume-meta {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .resume-thumb {
  background: #172019;
  border-color: #2f4234;
}

html[data-theme="dark"] #hub .preview-plot-bg {
  fill: #1e2a21 !important;
  stroke: #3d5443 !important;
}

html[data-theme="dark"] #hub .preview-plot-ring {
  stroke: #3d5443 !important;
}

html[data-theme="dark"] #hub .hub-tabs {
  background: #1f2b22;
}

html[data-theme="dark"] #hub .hub-tab {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .hub-tab:hover {
  color: #dce8de;
}

html[data-theme="dark"] #hub .hub-tab.active {
  background: #2b3b2f;
  color: #edf5ee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] #hub .hub-tab-badge {
  background: #253529;
  color: #b4cbb8;
}

html[data-theme="dark"] #hub .hub-tab.active .hub-tab-badge {
  background: #1d2a20;
  color: #d6e8d9;
}

html[data-theme="dark"] #hub .search-box input,
html[data-theme="dark"] #hub .sort-wrapper select,
html[data-theme="dark"] #hub .view-switch {
  background: #1f2b22;
  border-color: #314435;
  color: #e2ece4;
}

html[data-theme="dark"] #hub .view-btn {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .view-btn.active {
  background: #2b3b2f;
  color: #edf5ee;
}

html[data-theme="dark"] #hub .card {
  background: #1c271f;
  border-color: #2c3c2f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] #hub .card:hover {
  border-color: #3d5442;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] #hub .card-preview-wrap,
html[data-theme="dark"] #hub .card-preview {
  background-color: #172019;
  background-image: linear-gradient(#212f25 1px, transparent 1px), linear-gradient(90deg, #212f25 1px, transparent 1px);
  border-bottom-color: #2a3a2d;
}

html[data-theme="dark"] #hub .card-fav-btn {
  background: rgba(28, 39, 31, 0.88);
  border-color: #384c3c;
  color: #95a898;
}

html[data-theme="dark"] #hub .card-fav-btn:hover {
  background: #26362b;
  color: #e2ece4;
}

html[data-theme="dark"] #hub .card-title,
html[data-theme="dark"] #hub .card h3 {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .card-time,
html[data-theme="dark"] #hub .card-desc {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .metric-badge {
  background: #233126;
  border-color: #324436;
  color: #cadbce;
}

html[data-theme="dark"] #hub .tags span {
  background: #233227;
  border-color: #344939;
  color: #b7d3bc;
}

html[data-theme="dark"] #hub .card-footer-row {
  border-top-color: #2a3a2d;
}

html[data-theme="dark"] #hub .card-open-link,
html[data-theme="dark"] #hub .card .actions .open {
  color: #83c690;
}

html[data-theme="dark"] #hub .card-menu-btn {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .card-menu-btn:hover {
  background: #27372b;
  color: #e2ece4;
}

html[data-theme="dark"] #hub .card-dropdown {
  background: #1f2b22;
  border-color: #334637;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] #hub .card-dropdown-item {
  color: #dbe7de;
}

html[data-theme="dark"] #hub .card-dropdown-item:hover {
  background: #2a3c2e;
}

html[data-theme="dark"] #hub .card-dropdown-item.danger {
  color: #f28b82;
}

html[data-theme="dark"] #hub .card-dropdown-item.danger:hover {
  background: #332220;
}

html[data-theme="dark"] #hub .dropdown-divider {
  background: #2e4032;
}

html[data-theme="dark"] #hub .btn-inspiration {
  background: #1f2b22;
  border-color: #314435;
  color: #cadbce;
}

html[data-theme="dark"] #hub .btn-inspiration:hover {
  background: #28382c;
  border-color: #3f5744;
  color: #edf5ee;
}

html[data-theme="dark"] #hub .empty {
  background: #1c271f;
  border-color: #324637;
  color: #b5c7b8;
}

html[data-theme="dark"] #hub .empty h3 {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .empty p {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .template-filters button {
  background: #1f2b22;
  border-color: #314435;
  color: #c2d4c6;
}

html[data-theme="dark"] #hub .template-filters button:hover {
  background: #28382c;
  color: #edf5ee;
}

html[data-theme="dark"] #hub .template-filters button.active {
  background: #356c47;
  border-color: #49895d;
  color: #ffffff;
}

html[data-theme="dark"] #hub .panel-intro h2,
html[data-theme="dark"] #hub .settings-card h2 {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .panel-intro p,
html[data-theme="dark"] #hub .settings-card .muted,
html[data-theme="dark"] #hub .hub-footnote {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .settings-card,
html[data-theme="dark"] body dialog {
  background: #1c271f;
  border-color: #2f4032;
  color: #e2ece4;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] #hub .settings-card label,
html[data-theme="dark"] body dialog label {
  color: #cfe0d2;
}

html[data-theme="dark"] #hub .settings-card input,
html[data-theme="dark"] #hub .settings-card select,
html[data-theme="dark"] body dialog input,
html[data-theme="dark"] body dialog select {
  background: #151f18;
  border-color: #35493a;
  color: #edf5ee;
}

html[data-theme="dark"] #hub .access-item {
  border-bottom-color: #2a3a2d;
}

html[data-theme="dark"] #hub .access-identity strong {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .access-identity .access-meta {
  color: #83c690;
}

html[data-theme="dark"] #hub .access-identity small {
  color: #8c9e90;
}

html[data-theme="dark"] #hub .access-action {
  background: #243328;
  border-color: #364b3b;
  color: #d4e5d8;
}

html[data-theme="dark"] #hub .access-action:hover {
  background: #2e4233;
}

html[data-theme="dark"] #hub .access-action.danger {
  background: #332220;
  border-color: #573430;
  color: #f29c94;
}

html[data-theme="dark"] #hub .audit-card li {
  border-bottom-color: #2a3a2d;
  color: #c2d4c6;
}

html[data-theme="dark"] #hub .audit-card li strong {
  color: #edf4ee;
}

html[data-theme="dark"] #hub .audit-card li span {
  color: #9ab09f;
}

html[data-theme="dark"] #hub .setup-notice {
  background: #2d2618;
  border-color: #544527;
  color: #f2dfb6;
}

html[data-theme="dark"] #hub .setup-notice button,
html[data-theme="dark"] #hub .setup-notice a {
  color: #f6c879;
}

html[data-theme="dark"] #hub .hub-footer {
  border-top-color: #263529;
  color: #8c9e90;
}

html[data-theme="dark"] body dialog h2 {
  color: #edf4ee;
}

html[data-theme="dark"] body dialog .muted,
html[data-theme="dark"] body dialog .hint {
  color: #9ab09f;
}

html[data-theme="dark"] body dialog #dialog-close {
  background: #253429;
  border-color: #364b3b;
  color: #d8e5db;
}

html[data-theme="dark"] body dialog .secondary {
  background: #253429;
  border-color: #384e3d;
  color: #e2ece4;
}

/* System Notice Banner & Access Management Extensions */
.system-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.system-notice-banner[data-type="info"] {
  background: #f1f8ed;
  border: 1px solid #cce3c2;
  color: #2b5525;
}
.system-notice-banner[data-type="warning"] {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.system-notice-banner[data-type="urgent"] {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.system-notice-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.system-notice-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.system-notice-badge.badge-info {
  background: #446838;
  color: #fff;
}
.system-notice-badge.badge-warning {
  background: #d97706;
  color: #fff;
}
.system-notice-badge.badge-urgent {
  background: #dc2626;
  color: #fff;
}
.system-notice-text {
  font-weight: 500;
}
.system-notice-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.65;
  color: inherit;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.system-notice-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}
.status-badge.status-active {
  background: #e8f5e9;
  color: #2e7d32;
}
.status-badge.status-warning {
  background: #fff8e1;
  color: #b45309;
}
.status-badge.status-expired {
  background: #ffebee;
  color: #c62828;
}
.status-badge.status-suspended {
  background: #eceff1;
  color: #546e7a;
}
.status-badge.status-lifetime {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.user-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.user-filters button {
  background: transparent;
  border: 1px solid #d5ddd3;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #526354;
  cursor: pointer;
  transition: all 0.15s ease;
}
.user-filters button.active,
.user-filters button:hover {
  background: #eef3eb;
  border-color: #658452;
  color: #2e4726;
}

.access-extend-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.btn-extend-preset {
  background: #f4f6f2;
  border: 1px solid #d8e0d5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #354a37;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.btn-extend-preset:hover,
.btn-extend-preset.active {
  background: #46633e;
  border-color: #46633e;
  color: #fff;
}
.btn-extend-preset.preset-vitalicio {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}
.btn-extend-preset.preset-vitalicio:hover,
.btn-extend-preset.preset-vitalicio.active {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #fff;
}

.notice-admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.notice-admin-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #fdfdfc;
  border: 1px solid #e1e7dc;
  border-radius: 10px;
}
.notice-admin-item.is-inactive {
  opacity: 0.6;
}
.notice-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.notice-admin-actions {
  display: flex;
  gap: 6px;
}
.notice-admin-actions button {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccd5c7;
  background: #fff;
  cursor: pointer;
}
.notice-admin-actions button:hover {
  background: #f0f4ee;
}

html[data-theme="dark"] .system-notice-banner[data-type="info"] {
  background: #1e3323;
  border-color: #32583a;
  color: #c9e8cd;
}
html[data-theme="dark"] .system-notice-banner[data-type="warning"] {
  background: #3b2a14;
  border-color: #63431d;
  color: #fde2b4;
}
html[data-theme="dark"] .system-notice-banner[data-type="urgent"] {
  background: #3b1717;
  border-color: #612727;
  color: #fecaca;
}
html[data-theme="dark"] .btn-extend-preset {
  background: #253327;
  border-color: #3b4d3e;
  color: #dbe6dc;
}
html[data-theme="dark"] .notice-admin-item {
  background: #202c22;
  border-color: #334436;
}

/* LGPD Cookie Consent Banner (bottom-center on Home) */
.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid #cddbc8;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(20, 42, 26, 0.16);
  color: #1e3322;
}
.cookie-consent-copy {
  flex: 1;
  min-width: 0;
}
.cookie-consent-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #19311f;
  margin-bottom: 3px;
}
.cookie-consent-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #465b4a;
}
.cookie-consent-details {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: #5b7160 !important;
}
.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-consent-link {
  background: transparent;
  border: 1px solid #cddbc8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #2f4d35;
  cursor: pointer;
}
.cookie-consent-link:hover {
  background: #f0f5ee;
}
.cookie-consent-accept {
  background: #2a8431;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-consent-accept:hover {
  background: #236f29;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    gap: 12px;
  }
  .cookie-consent-actions {
    justify-content: flex-end;
  }
}

/* Protected E-mail row in Access Panel */
html body #hub .access-email-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 4px;
  font-size: 12px;
  color: #3f6045;
}
html body #hub .access-email-label {
  font-weight: 600;
}
html body #hub .access-email-value.is-masked {
  letter-spacing: 0.14em;
  color: #6b806f;
  user-select: none;
}
html body #hub .access-email-value.is-revealed {
  color: #19311f;
  font-weight: 600;
}
html body #hub .access-email-value.is-empty {
  color: #889a8b;
  font-style: italic;
}
html body #hub .access-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 1px solid #cfdecd;
  border-radius: 6px;
  background: #f2f7ef;
  color: #23462a;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
html body #hub .access-eye-btn:hover {
  background: #e2eedc;
  border-color: #9cb99b;
}
html body #hub .access-eye-btn svg {
  width: 14px;
  height: 14px;
}

html[data-theme="dark"] .cookie-consent-banner {
  background: rgba(24, 34, 27, 0.96);
  border-color: #324636;
  color: #e2ece4;
}
html[data-theme="dark"] .cookie-consent-copy strong {
  color: #f0f6f1;
}
html[data-theme="dark"] .cookie-consent-copy p,
html[data-theme="dark"] .cookie-consent-details {
  color: #a5baa9 !important;
}
html[data-theme="dark"] .cookie-consent-link {
  border-color: #394e3d;
  color: #d6e6d9;
}
html[data-theme="dark"] .cookie-consent-link:hover {
  background: #253629;
}
html[data-theme="dark"] #hub .access-email-row {
  color: #8eb396;
}
html[data-theme="dark"] #hub .access-email-value.is-revealed {
  color: #edf5ee;
}
html[data-theme="dark"] #hub .access-email-value.is-masked {
  color: #7d9281;
}
html[data-theme="dark"] #hub .access-eye-btn {
  background: #243328;
  border-color: #364b3b;
  color: #d4e5d8;
}
html[data-theme="dark"] #hub .access-eye-btn:hover {
  background: #2e4233;
}


