/* Light brushed aluminum palette */
:root{--ow-font-scale:1.06;--bg:#e8ebef;--bg2:#dee3e8;--panel:#f3f5f7;--ink:#1c232c;--muted:#5b6776;--accent:#2a7cff;--accent2:#62b4ff;--danger:#d12f2f;--line:#b7c0cb;--line-strong:#9aa6b5;--btn:#f2f4f6;--btn-hover:#e9edf2;--inset-hi:rgba(255,255,255,.75);--inset-lo:rgba(0,0,0,.18);--edge-hi:rgba(255,255,255,.9);--edge-lo:rgba(0,0,0,.22);--glow:#8fb9ff}
html{font-size:calc(16px*var(--ow-font-scale))}
body{margin:0;position:relative;background:
  linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%),
  radial-gradient(120% 180% at 0% 0%, #eef5ff 0%, rgba(238,245,255,.6) 35%, rgba(245,255,250,.4) 100%),
  repeating-linear-gradient(90deg,rgba(0,0,0,.03) 0 1px,rgba(255,255,255,0) 1px 2px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='7'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.035' fill='black'/></svg>");
  color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
.wrap{position:relative;z-index:1}
body::before{content:"";position:fixed;inset:-15%;pointer-events:none;z-index:0;filter:blur(40px) saturate(130%);opacity:.35;background:
  radial-gradient(40% 40% at 15% 20%, rgba(139,189,255,.55), transparent 60%),
  radial-gradient(35% 35% at 85% 15%, rgba(120,255,214,.4), transparent 62%),
  radial-gradient(50% 50% at 60% 80%, rgba(255,184,120,.35), transparent 60%);
animation:owFloat 26s ease-in-out infinite alternate}
@keyframes owFloat{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(2%, -1%, 0)}100%{transform:translate3d(-2%, 2%, 0)}}
a{color:#2a7cff;text-decoration:none;transition:color .12s ease, text-shadow .12s ease}
a:hover{color:#5195ff;text-shadow:0 0 6px rgba(42,124,255,.18)}
a:focus-visible{outline:2px solid #8fb9ff;outline-offset:2px;border-radius:4px}
.wrap{display:flex;min-height:100vh;gap:0}
.sidebar{width:260px;background:
  linear-gradient(180deg,#f7f9fb 0%,#eef2f6 100%),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px,rgba(255,255,255,0) 1px 2px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.035' fill='black'/></svg>");
  padding:18px;border-right:1px solid var(--line-strong);display:flex;flex-direction:column;
  box-shadow:inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 rgba(255,255,255,.6), 6px 0 18px rgba(0,0,0,.08);
  backdrop-filter:saturate(160%) blur(8px); -webkit-backdrop-filter:saturate(160%) blur(8px)}
.brandbox{display:flex;align-items:center;gap:10px;margin-bottom:10px;opacity:0;animation:owLogoFade 1s ease forwards}
@keyframes owLogoFade{from{opacity:0;}to{opacity:1;}}
.brand{font-weight:900;font-size:1.05rem;color:#1b232b;letter-spacing:0.04em;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.token-counter{margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:10px;background:
  linear-gradient(180deg,#ffffff,#edf1f6),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.15)}
.token-counter .big{font-weight:900;font-size:2rem;color:var(--accent);text-shadow:0 0 12px rgba(247,201,72,.15)}
.token-counter .rowline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mode-toggle{display:flex;gap:8px;margin-top:6px}
.mode-toggle button{flex:1;border:1px solid var(--line);background:linear-gradient(180deg,#fbfcfe,#eef2f6);color:var(--ink);border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:800;letter-spacing:.02em;box-shadow:inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 var(--inset-lo)}
.mode-toggle button.active{background:linear-gradient(180deg,#ffffff,#edf3ff);border-color:#9fb7d8;box-shadow:inset 0 0 0 2px rgba(42,124,255,.25)}
.mode-toggle .pill{display:flex;align-items:center;gap:8px}
.mode-toggle .dot{width:10px;height:10px;border-radius:50%;background:var(--muted)}
.mode-toggle button.active .dot{background:var(--accent2)}
.nav a{display:block;padding:12px 6px;border-radius:6px;color:#2b3540;border:0;background:transparent;
  font-weight:900;font-size:1.05rem;letter-spacing:.03em;
  text-shadow:
    0 1px 0 rgba(255,255,255,.55),
    0 -1px 0 rgba(0,0,0,.28);
}
.nav a:hover{color:#1f2a34;text-shadow:
    0 1px 0 rgba(255,255,255,.7),
    0 -1px 0 rgba(0,0,0,.35),
    0 0 10px rgba(42,124,255,.12)}
.nav a.active{color:#1a2531;text-shadow:
    0 1px 0 rgba(255,255,255,.9),
    0 -1px 0 rgba(0,0,0,.45),
    0 0 12px rgba(42,124,255,.18)}
.nav a:focus-visible{outline:2px solid #8fb9ff;outline-offset:2px;border-radius:6px}
.fontctl{display:flex;gap:6px;margin:8px 0}
.fontctl button{width:32px;height:32px;border:1px solid var(--line);background:#f6f9fc;color:var(--ink);border-radius:8px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.fontctl button:hover{background:#ffffff}
.sidefoot{margin-top:auto}
.main{flex:1;padding:22px;position:relative;background:
  linear-gradient(180deg,#f6f8fa 0%,#eef3f7 100%),
  repeating-linear-gradient(90deg,rgba(0,0,0,.035) 0 1px,rgba(255,255,255,0) 1px 2px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' seed='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.03' fill='black'/></svg>");
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.08)}
.main::before{content:"";position:absolute;inset:0;border:1px solid var(--line);border-left:none;pointer-events:none;box-shadow:inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 var(--edge-lo)}
.top-logo{display:none}
.card{background:
  linear-gradient(180deg,#FCFCFD 0%,#eef2f6 100%),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px,rgba(255,255,255,0) 1px 2px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='5'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.03' fill='black'/></svg>");
  border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:18px;
  /* Updated bevel/drop shadow */
  box-shadow:
    rgba(45,35,66,.10) 0 2px 6px,
    rgba(45,35,66,.30) 0 5px 1px -6px,
    #D6D6E7 0 -3px 0 inset,
    rgba(255,255,255,.95) 0 1px 0 inset;
  backdrop-filter:saturate(160%) blur(8px); -webkit-backdrop-filter:saturate(160%) blur(8px)}
.btn{background:
  radial-gradient(120% 180% at 50% -30%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(180deg,#fefefe,#e9eef3),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  border:1px solid var(--line-strong);color:#1f2933;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:700;letter-spacing:.02em;box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.15),
    0 1px 0 rgba(255,255,255,.8), 0 6px 16px rgba(0,0,0,.08)}
.btn:hover{background:
  radial-gradient(120% 180% at 50% -30%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(180deg,#ffffff,#edf2f7),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px)}
.btn:active{transform:translateY(1px);box-shadow:inset 0 0 0 1px #526374, 0 2px 0 #121a22}
.btn.secondary{background:
  linear-gradient(180deg,#fafbfc,#e9edf2),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  border-color:#aab6c4;box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.12)}
.btn.pay{background:
  radial-gradient(140% 200% at 50% -60%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(180deg,#58adff,#2a7cff);
  color:#ffffff;border-color:#2a7cff;box-shadow:inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(0,0,0,.25), 0 6px 16px rgba(42,124,255,.25)}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
select,
textarea{appearance:none;-webkit-appearance:none;-moz-appearance:none;font-family:inherit;font-size:1rem;background:
  linear-gradient(180deg,#fdfefe,#eef2f6),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:10px;width:100%;box-shadow:inset 0 2px 3px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9)}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0 }
input[type=number]{ -moz-appearance:textfield }
/* Ensure inputs/textarea respect container width */
input,select,textarea{box-sizing:border-box}

input[type=checkbox]{width:auto;height:18px;accent-color:var(--accent);vertical-align:-2px}
.card input,.card select,.card textarea{max-width:100%}
label{display:block;margin:8px 0 4px}
table{width:100%;border-collapse:separate;border-spacing:0 6px}
th,td{border-bottom:1px dashed #233047;padding:10px;text-align:left}
.row{display:flex;gap:16px;align-items:flex-start}
.row>.col{flex:1;min-width:0}
.row>.col.max-420{flex:0 1 420px}
.tag{background:#132238;color:#93c5fd;border:2px solid #23415f;padding:3px 8px;border-radius:8px;display:inline-block;margin:4px 6px 0 0;cursor:pointer}
.muted{color:var(--muted)}
.notice{padding:10px;border-left:4px solid var(--accent2);background:linear-gradient(180deg,#0e1b2a,#0a121a);border-radius:6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.paypanel{display:flex;align-items:center;gap:16px}
.paypanel .amount{font-size:2.4rem;font-weight:900;color:var(--accent)}
.buy-wrap .max-420 {max-width: 100%}
.paypanel .amount-inp{
    text-align: right;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 8px;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(0, 0, 0, .08);
    field-sizing: content;
    min-block-size: 2em;
    resize: none;
}
.total-token-amount .caption{
margin-bottom: -14px;
    margin-top: 20px;
}
.worker-save-panel{justify-content:space-between}
.worker-save-panel .total-token-amount{display:flex;flex-direction:column;align-items:center}
.worker-save-panel .total-token-amount .caption{margin-top:8px;margin-bottom:0}
.paypanel .amount .old-price{font-size:1.2rem;margin-right:10px;color:rgba(91,103,118,.8)}
.discount-note{margin-top:6px;font-size:.9rem;color:var(--muted)}
.old-price{text-decoration:line-through;margin-right:8px;color:rgba(91,103,118,.8)}
.savings{color:#1e4f1e;font-weight:700}
.page-top-balance{display:flex;justify-content:flex-end;margin:10px 0}
.balance-badge{font-size:.95rem;cursor:default}
.label{display:inline-block;padding:2px 6px;border-radius:6px;font-size:.75rem;border:1px solid #2a3a4d;background:#0f1620;color:#bcd;letter-spacing:.03em}
.label.green{background:#0f2218;border-color:#1a3f2c;color:#9ef3c2}

/* Icons */
.icon{width:1.05em;height:1.05em;vertical-align:-0.15em;margin-right:.45em;fill:currentColor}

/* Token cost box on Dashboard */
.costbox{border:1px dashed var(--line-strong);border-radius:6px;padding:10px;background:linear-gradient(180deg,#fbfcfe,#eef2f6)}
.costbox .title{font-weight:800;color:#1f2a35;margin-bottom:6px}
.costbox .cost{font-weight:900;font-size:1.3rem;color:#2a7cff}
.costbox .cost.green{color:#0f9d58}
.costbox .cost-rows{display:flex;flex-direction:column;gap:8px}.costbox .cost-rows .rowline{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:#1f2a35}.costbox .cost-rows .rowline span:last-child{font-weight:600}.costbox .cost-rows .rowline.muted{color:rgba(31,42,53,.6)}.costbox .cost-rows .total{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:1.05rem;margin-top:4px;color:#1b2733}.costbox .cost-rows .total strong{color:#0c1724}
.costbox .cost-highlight{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:4px 10px;border-radius:999px;background:linear-gradient(180deg,#dfe9ff,#bad2ff);border:1px solid #7aa3ff;font-weight:900;font-size:1.2rem;color:#1a46b8;box-shadow:0 2px 6px rgba(19,63,160,.18)}.costbox .cost-highlight span{color:inherit;font-weight:inherit;font-size:inherit}
.worker-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:flex-start}.worker-main{min-width:0}.worker-main-block{}.worker-main-block>.row{gap:18px;flex-wrap:wrap}.worker-main-block label{font-weight:700;color:#253040;margin-top:12px;display:block}.worker-main-block label:first-of-type{margin-top:0}.worker-main-block textarea,.worker-main-block input[type=text]{width:100%}.worker-side{display:flex;flex-direction:column;gap:18px}.worker-side .well,.worker-side .token-counter{max-width:100%}@media(max-width:960px){.worker-edit-grid{grid-template-columns:1fr}}
.tag-input-wrap{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.tag-input-wrap input{flex:1;border:0;padding:10px 0;background:transparent;font-size:1rem}
.tag-input-wrap input:focus{outline:none}
.tag-prefix{font-family:"JetBrains Mono",monospace;font-weight:700;color:#4b5a6b}
#outputTagMsg{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#4b5a6b}
#outputTagMsg .tag-note{color:#4b5a6b}
#outputTagMsg .tag-note.muted{color:#64748b}
#outputTagMsg .tag-note.warn{color:#d97706;font-weight:600}
.tag-code.tag-copy{cursor:pointer}
.tag-code.copied{background:#124b23;border-color:#0f3c1c;color:#dfffe8}
.deposit-alert{margin:12px auto;max-width:520px;padding:10px 16px;border-radius:10px;font-weight:600;text-align:center;display:flex;justify-content:center;border:1px solid transparent}
.deposit-alert-success{background:#e6fff2;border-color:#98e1b4;color:#0f5132}
.deposit-alert-warning{background:#fff4d6;border-color:#f2d094;color:#8a6d1d}
.deposit-alert-error{background:#fde2e1;border-color:#f7b5b3;color:#8a1c1c}
.deposit-alert-info{background:#e3f0ff;border-color:#9dc2f7;color:#1d4f8a}

/* Wallet gauge */
.gauge{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:linear-gradient(180deg,#ffffff,#edf1f6);box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.08)}
.gauge .label{display:inline-block;background:#eef2f6;border:1px solid var(--line);color:#3b4652;border-radius:6px;padding:2px 6px;font-weight:800;margin-bottom:6px;letter-spacing:.02em}
.gauge .value{font-weight:900;font-size:2.1rem;color:#1546b3}

/* Small unit label next to numeric values */
.unit{font-weight:800;color:#4b5a6b;margin-left:6px;font-size:.9rem}

/* Token amount coloring for history */
.tok{font-weight:800}
.tok.pos{color:#0f9d58}
.tok.neg{color:#b91c1c}

/* Buy tokens layout */
.buy-wrap{max-width:720px;margin:0 auto}
.amount-lg{font-size:1.4rem;font-weight:900;color:var(--ink)}
.amount-inp{width:130px;text-align:center;font-size:2.4rem;font-weight:900;color:var(--accent);padding:0;border-radius:6px}
.caption{display:block;margin-top:6px;font-size:.82rem;color:var(--muted);text-align:center}
.arrow{font-size:2rem; line-height:1; padding:0 12px; color:#64748b}
.success-hero{border:1px solid var(--line);border-radius:10px;padding:14px;text-align:center;background:linear-gradient(180deg,#f0fff4,#e6fffa);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.success-hero .big{font-size:1.6rem;font-weight:900;color:#0f9d58}

/* Switch toggles (Enabled, Save Log) */
.ow-toggle{display:inline-flex;align-items:center;gap:10px}
.ow-toggle input{display:none}
.ow-toggle .track{position:relative;width:56px;height:28px;border-radius:999px;border:1px solid var(--line-strong);background:#cfd6df;box-shadow:inset 0 1px 0 var(--edge-hi)}
.ow-toggle .knob{position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.ow-toggle .label{font-weight:900}
.ow-toggle .led{width:10px;height:10px;border-radius:50%;background:#b8c3cf;box-shadow:0 0 0 2px rgba(255,255,255,.7) inset, 0 0 0 1px rgba(0,0,0,.1)}
.ow-toggle input:checked + .track{background:#32d96b}
.ow-toggle input:checked + .track .knob{left:30px}
.ow-toggle input:checked ~ .led{background:#32d96b;box-shadow:0 0 8px rgba(50,217,107,.4), 0 0 0 2px rgba(255,255,255,.7) inset, 0 0 0 1px rgba(0,0,0,.1)}

/* Small variant */
.ow-toggle.sm .track{width:40px;height:20px}
.ow-toggle.sm .knob{width:16px;height:16px}
.ow-toggle.sm input:checked + .track .knob{left:22px}

/* Header row spacing fix on edit page */
.card .row.items-center + form{margin-top:8px}

/* Avatars */
.avatar-round{display:inline-block;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.2)}

/* Tag list table inside worker editor */
.tag-table{width:100%;border-collapse:separate;border-spacing:0 6px}
.tag-table th,.tag-table td{padding:8px 10px;border-bottom:1px dashed rgba(0,0,0,.08)}
.tag-code{font-family:"JetBrains Mono",monospace;background:#0c141d;color:#cfe3ff;border:1px solid #23415f;border-radius:6px;padding:4px 8px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;text-decoration:none;font-size:.92rem}
.tag-code:hover{background:#111a24}
.save-grid{display:flex;flex-direction:column;gap:18px;margin-top:18px}
.save-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;box-shadow:0 1px 2px rgba(15,22,32,.05)}
.save-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.save-meta{display:flex;gap:12px;color:#4b5a6b;font-size:.88rem}
.save-code{font-weight:700;letter-spacing:.05em}
.save-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;font-size:.72rem;font-weight:700;background:#0c141d;color:#cfe3ff}
.save-tag.worker{background:#f9f1d7;color:#4a3b08}
.save-tag.session{background:#e8f8ff;color:#11405c}
.save-tag.message{background:#e5f7ea;color:#0f3c1c}
.save-card-body .label{font-weight:700;font-size:.85rem;margin:10px 0 4px 0}
.save-line{margin-bottom:6px;font-size:.92rem}
.save-card-body .prewrap{background:#f5f8fb;border:1px solid rgba(0,0,0,.05);border-radius:8px;padding:10px}
.save-entry{margin-top:12px;border:1px solid rgba(0,0,0,.05);border-radius:10px;padding:12px;background:#f8fbff}
.save-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;font-size:.85rem}
.save-card-foot form{margin:0}
.saved-sort-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.saved-sort-form label{font-weight:700;color:#253040;margin-right:4px}
.saved-sort-form select{padding:4px 8px;border-radius:6px;border:1px solid var(--line);background:#fff}
button.tag-code{background:#0c141d;border:1px solid #23415f}

/* Chat response sizing */
.resp{font-size:1.08rem;line-height:1.5}
.resp-main{font-size:1.6rem;line-height:1.6}
.prewrap.resp,.prewrap.resp-main{padding:14px 0;}
.ow-workers-wrapper{margin-top:10px}
.ow-workers-header{display:grid;grid-template-columns:120px minmax(220px,1fr) minmax(200px,1fr) minmax(200px,1fr) minmax(160px,1fr) minmax(200px,1fr);gap:16px;padding:12px 6px;border-bottom:1px dotted rgba(45,35,66,.4);margin-bottom:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#2b3540}
.ow-worker-row{display:grid;grid-template-columns:120px minmax(220px,1fr) minmax(200px,1fr) minmax(200px,1fr) minmax(160px,1fr) minmax(200px,1fr);gap:16px;padding:18px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(243,246,250,.88));box-shadow:rgba(45,35,66,.18) 0 10px 24px -12px, inset 0 1px 0 rgba(255,255,255,.75);align-items:center;margin-bottom:12px}
.ow-data-wrapper{margin-top:10px}
.ow-data-header{display:grid;grid-template-columns:120px minmax(210px,1fr) minmax(240px,1.2fr) minmax(180px,1fr) minmax(150px,0.9fr) minmax(200px,1fr) minmax(180px,1fr);gap:16px;padding:12px 6px;border-bottom:1px dotted rgba(45,35,66,.4);margin-bottom:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#2b3540}
.ow-data-row{display:grid;grid-template-columns:120px minmax(210px,1fr) minmax(240px,1.2fr) minmax(180px,1fr) minmax(150px,0.9fr) minmax(200px,1fr) minmax(180px,1fr);gap:16px;padding:18px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(243,246,250,.88));box-shadow:rgba(45,35,66,.18) 0 10px 24px -12px, inset 0 1px 0 rgba(255,255,255,.75);align-items:center;margin-bottom:12px}
.ow-data-info{display:flex;align-items:center;gap:14px}
.ow-data-source .muted{font-size:.9rem}
.ow-data-source{line-height:1.35}
.ow-data-spend{display:flex;flex-direction:column;gap:6px}
.ow-data-spend .badge{display:inline-flex;align-self:flex-start;margin:0}
.ow-data-status{display:flex;align-items:center;gap:12px;white-space:nowrap}
.ow-data-schedule{line-height:1.35;color:#2f3947}
.ow-data-schedule .muted{color:#5b6776;font-size:.9rem}
.ow-data-actions{display:flex;align-items:center;gap:8px;justify-content:flex-start}
.ow-data-actions form{display:inline;margin:0}
.ow-worker-info{display:flex;align-items:center;gap:14px}
.ow-worker-avatar{display:inline-block;border-radius:18px;overflow:hidden;max-width:65px}
.ow-worker-avatar svg{display:block;width:100%;height:auto}
.ow-worker-name{font-size:1.08rem;font-weight:700;color:#1f2933}
.ow-worker-status{display:flex;align-items:center;gap:12px;white-space:nowrap}
.ow-status-form{display:flex;align-items:center;gap:10px}
.ow-status-form .ow-toggle{margin:0}
.badge.status{display:none}
.ow-worker-output .badge{font-weight:600}
.ow-worker-spend{display:flex;flex-direction:column;gap:6px}
.ow-worker-spend .badge{display:inline-flex;align-self:flex-start;margin:0}
.ow-worker-schedule{line-height:1.35;color:#2f3947}
.ow-worker-schedule .muted{color:#5b6776;font-size:.9rem}
.ow-worker-actions{display:flex;align-items:center;gap:8px;justify-content:flex-start}
.ow-worker-actions form{display:inline;margin:0}
.tiny{font-size:.8rem}

/* Light tag chips for Prompt/Output labels */
.tag-chip{display:inline-block;background:#eef2f6;border:1px solid var(--line);color:#516173;border-radius:6px;padding:1px 5px;font-weight:700;user-select:none;font-size:.8rem}

/* Prompt toolbar */
.editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px 0}
.editor-toolbar .tag-code{border-radius:6px}
/* Modal confirm */
.ow-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;align-items:center;justify-content:center;z-index:1000}
.ow-modal{min-width:320px;max-width:520px;background:linear-gradient(180deg,#ffffff,#edf1f6);border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 42px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.9)}
.ow-modal .head{padding:12px 16px;font-weight:900;border-bottom:1px solid var(--line-strong)}
.ow-modal .body{padding:16px;color:#1f2a35}
.ow-modal .actions{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid var(--line)}

/* Inline warnings */
.warn{color:#b91c1c;font-weight:700}

/* Utilities */
.mt-6{margin-top:6px}
.mt-8{margin-top:8px}
.mt-10{margin-top:10px}
.m-0{margin:0}
.ml-auto{margin-left:auto}
.align-end{align-items:flex-end}
.prewrap{white-space:pre-wrap}
.items-center{align-items:center}
.inline{display:inline}
.block{display:block}
.max-220{max-width:220px}
.max-420{max-width:420px}
.overflow-auto{overflow:auto}

/* Status strip */
.status-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:-10px -10px 16px -10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:
  linear-gradient(180deg,#ffffff,#edf1f6),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.12);
  backdrop-filter:saturate(160%) blur(6px); -webkit-backdrop-filter:saturate(160%) blur(6px)}
.status-strip .status-item{display:flex;align-items:center;gap:8px;color:#29333e;background:#f6f9fc;border:1px solid var(--line);border-radius:8px;padding:6px 10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.led-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b8c3cf;box-shadow:0 0 0 2px rgba(255,255,255,.7) inset, 0 0 0 1px rgba(0,0,0,.1)}
.led-dot.on{background:#32d96b;box-shadow:0 0 10px rgba(50,217,107,.35), 0 0 0 2px rgba(255,255,255,.7) inset, 0 0 0 1px rgba(0,0,0,.1)}

/* Glass wells (recessed panels) */
.well{border:1px solid var(--line);border-radius:8px;padding:12px;background:
  linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  box-shadow:inset 0 2px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.04);
  backdrop-filter:saturate(160%) blur(8px); -webkit-backdrop-filter:saturate(160%) blur(8px)}
.well.inset{box-shadow:inset 0 6px 14px rgba(0,0,0,.08), inset 0 -6px 14px rgba(0,0,0,.06)}
.well .muted{color:#49576a}
.well table{background:transparent}
.well table tr{background:transparent}
.well table th,.well table td{border-bottom:1px dashed rgba(0,0,0,.08)}

/* 3D rocker switch for billing mode */
.switch3d{position:relative;width:280px;height:54px;margin-top:8px;perspective:600px}
.switch3d input{display:none}
.switch3d .base{position:absolute;inset:0;background:
  linear-gradient(180deg,#fbfcfe,#eef2f6),
  repeating-linear-gradient(90deg,rgba(0,0,0,.04) 0 1px, rgba(255,255,255,0) 1px 2px);
  border:1px solid var(--line-strong);border-radius:10px;
  box-shadow:inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 var(--inset-lo), 0 3px 0 rgba(0,0,0,.06)}
.switch3d label.arm{position:absolute;top:0;bottom:0;width:50%;display:flex;align-items:center;justify-content:center;
  color:var(--ink);text-transform:uppercase;font-weight:800;letter-spacing:.03em;cursor:pointer;user-select:none;
  background:linear-gradient(180deg,#111a24,#0c141c);border-radius:10px;transition:.12s transform ease-out, .12s box-shadow ease-out}
.switch3d label.arm.left{left:0;border-right:1px solid #1b2430}
.switch3d label.arm.right{right:0;border-left:1px solid #1b2430}
.switch3d .led{position:absolute;top:-10px;right:12px;width:10px;height:10px;border-radius:50%;background:#344;color:transparent;
  box-shadow:0 0 0 2px #0a0e14,0 0 0 1px #0a0e14 inset}
.switch3d .txt{opacity:.9}
#mode_message:checked ~ label.arm.left{transform:translateY(2px);box-shadow:inset 0 1px 0 var(--inset-hi),inset 0 -1px 0 #06090d}
#mode_minute:checked ~ label.arm.right{transform:translateY(2px);box-shadow:inset 0 1px 0 var(--inset-hi),inset 0 -1px 0 #06090d}
#mode_message:checked ~ .base .led{background:#00e676;box-shadow:0 0 8px rgba(0,230,118,.7),0 0 0 2px #0a0e14}
#mode_minute:checked ~ .base .led{background:#00e676;box-shadow:0 0 8px rgba(0,230,118,.7),0 0 0 2px #0a0e14}

/* Plates, badges, rivets */
.plate{background:linear-gradient(180deg,#0c141d,#0a1016);border:1px solid var(--line-strong);border-radius:8px;padding:12px;box-shadow:inset 0 1px 0 var(--inset-hi), inset 0 -1px 0 var(--inset-lo), 0 3px 0 #0a0e14}
.plate.rivets{position:relative}
.plate.rivets::before,.plate.rivets::after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#0a0e14;box-shadow:inset 0 1px 0 #1a2430,0 0 0 1px #1a2430}
.plate.rivets::before{top:6px;left:6px}
.plate.rivets::after{top:6px;right:6px}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;border:1px solid #2a3a4d;background:#0f1620;color:#cbd;letter-spacing:.02em;font-weight:700;margin-right:6px}
.badge.gold{background:#3a2c0a;border-color:#caa33b;color:#ffdf86}
.badge.blue{background:#0d1824;border-color:#2a3a4d;color:#bde}
.badge.green{background:#0f2218;border-color:#1a3f2c;color:#9ef3c2}
.led-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#2a3340;box-shadow:0 0 0 2px #0a0e14;margin-right:6px}
.led-dot.on{background:#00e676;box-shadow:0 0 8px rgba(0,230,118,.7),0 0 0 2px #0a0e14}

/* Chips for variables */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:#132238;border:1px solid #23415f;color:#cfe3ff;cursor:pointer}
.chip:hover{background:#0f2136;border-color:#285279}

/* Lists */
.list.table table{width:100%;border-collapse:separate;border-spacing:0 8px}
.list.table tr{background:#fbfcfe}
.list.table tr td{padding:12px;border-top:1px solid var(--line);border-bottom:1px solid rgba(0,0,0,.06)}
.list.table tr:hover{background:#f0f4f8}

/* Section headers with rivets */
.sect{position:relative;padding-left:10px;margin:8px 0 6px}
.sect::before,.sect::after{content:"";position:absolute;top:6px;width:8px;height:8px;border-radius:50%;background:#0a0e14;box-shadow:inset 0 1px 0 #1a2430,0 0 0 1px #1a2430}
.sect::before{left:-4px}
.sect::after{right:-4px}

/* Dashboard status strip */
.status-strip{display:flex;gap:12px;flex-wrap:wrap;background:linear-gradient(180deg,#ffffff,#edf1f6);border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.12)}
.status-item{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#f6f9fc;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}

/* Button styles inspired by provided examples */
.button-85{padding:.6em 2em;border:none;outline:none;color:#fff;background:#111;cursor:pointer;position:relative;z-index:0;border-radius:10px}
.button-85:before{content:"";background:linear-gradient(45deg,#ff0000,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,#ff0000);position:absolute;top:-2px;left:-2px;background-size:400%;z-index:-1;filter:blur(5px);width:calc(100% + 4px);height:calc(100% + 4px);animation:glowing-button-85 20s linear infinite;border-radius:10px}
@keyframes glowing-button-85{0%{background-position:0 0}50%{background-position:400% 0}100%{background-position:0 0}}
.button-85:after{z-index:-1;content:"";position:absolute;width:100%;height:100%;background:#222;left:0;top:0;border-radius:10px}

.button-82-pushable{position:relative;border:none;background:transparent;padding:0;cursor:pointer;outline-offset:4px;transition:filter 250ms}
.button-82-shadow{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:12px;background:rgba(0,0,0,.25);transform:translateY(2px);transition:transform 600ms cubic-bezier(.3,.7,.4,1)}
.button-82-edge{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:12px;background:linear-gradient(to left,#3b0a16 0%,#8a132a 8%,#8a132a 92%,#3b0a16 100%)}
.button-82-front{display:block;position:relative;padding:12px 27px;border-radius:12px;font-size:1.05rem;color:#fff;background:#d61b4b;transform:translateY(-4px);transition:transform 600ms cubic-bezier(.3,.7,.4,1)}
.button-82-pushable:hover{filter:brightness(110%)}
.button-82-pushable:hover .button-82-front{transform:translateY(-6px);transition:transform 250ms cubic-bezier(.3,.7,.4,1.5)}
.button-82-pushable:active .button-82-front{transform:translateY(-2px);transition:transform 34ms}
.button-82-pushable:hover .button-82-shadow{transform:translateY(4px);transition:transform 250ms cubic-bezier(.3,.7,.4,1.5)}
.button-82-pushable:active .button-82-shadow{transform:translateY(1px);transition:transform 34ms}

.button-30{align-items:center;appearance:none;background-color:#FCFCFD;border-radius:4px;border-width:0;box-shadow:rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;box-sizing:border-box;color:#36395A;cursor:pointer;display:inline-flex;font-family:"JetBrains Mono",monospace;height:48px;justify-content:center;line-height:1;list-style:none;overflow:hidden;padding:0 16px;position:relative;text-align:center;text-decoration:none;transition:transform .1s ease, box-shadow .1s ease;user-select:none;-webkit-user-select:none;touch-action:manipulation;white-space:nowrap;will-change:box-shadow,transform;font-size:18px;transform:translateY(0)}
.button-30:focus{box-shadow:#D6D6E7 0 0 0 1.5px inset, rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset}
.button-30:hover{box-shadow:rgba(45,35,66,.4) 0 4px 8px, rgba(45,35,66,.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset}
.button-30:active{box-shadow:#D6D6E7 0 3px 7px inset; transform:translateY(2px)}

/* sheen */
.button-30::after,.button-29::after{content:"";position:absolute;top:-120%;left:-30%;width:30%;height:340%;transform:rotate(25deg);background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);transition:transform .6s ease, opacity .3s ease;opacity:.0;pointer-events:none}
.button-30:hover::after,.button-29:hover::after{transform:translateX(260%) rotate(25deg);opacity:.9}

/* Gradient primary variant */
.button-29{align-items:center;appearance:none;
  /* Default Register-style gradient using variables for easy color variations */
  --btn29-start:#5adaff; --btn29-end:#5468ff;
  background-image:radial-gradient(100% 100% at 100% 0, var(--btn29-start) 0, var(--btn29-end) 100%);
  border:0;border-radius:6px;box-shadow:rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, rgba(58,65,111,.5) 0 -3px 0 inset;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-flex;font-family:"JetBrains Mono",monospace;height:48px;justify-content:center;line-height:1;list-style:none;overflow-hidden;padding:0 16px;position:relative;text-align:center;text-decoration:none;transition:transform .1s ease, box-shadow .1s ease;user-select:none;-webkit-user-select:none;touch-action:manipulation;white-space:nowrap;will-change:box-shadow,transform;font-size:18px;transform:translateY(0)}
.button-29:focus{box-shadow:#3c4fe0 0 0 0 1.5px inset, rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset}
.button-29:hover{box-shadow:rgba(45,35,66,.4) 0 4px 8px, rgba(45,35,66,.3) 0 7px 13px -3px, rgba(58,65,111,.5) 0 -3px 0 inset;
  /* Slightly deepen gradient on hover for better contrast */
  background-image:radial-gradient(100% 100% at 100% 0, color-mix(in oklab, var(--btn29-start) 88%, black), color-mix(in oklab, var(--btn29-end) 90%, black));
}
.button-29:active{box-shadow:#3c4fe0 0 3px 7px inset; transform:translateY(2px)}

/* Color variations for register-style buttons */
.button-29.green{ --btn29-start:#34d399; --btn29-end:#059669; }
.button-29.red{   --btn29-start:#ff6b6b; --btn29-end:#d12f2f; }
.button-29.purple{--btn29-start:#c084fc; --btn29-end:#5b21b6; }
/* Amber uses darker end + dark text for contrast */
.button-29.amber{ --btn29-start:#fbbf24; --btn29-end:#b45309; color:#111827; text-shadow:0 1px 0 rgba(255,255,255,.35) }
.button-29.amber:focus{ box-shadow:#b45309 0 0 0 1.5px inset, rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #b45309 0 -3px 0 inset }
.button-29.amber:hover{ background-image:radial-gradient(100% 100% at 100% 0, #f59e0b, #92400e) }
/* Small button utility */
.button-29.button-sm, .button-30.button-sm { height:36px; padding:0 12px; font-size:14px }

/* Bold checkbox-as-button utility for Enabled/Save Log etc. */
.chkbtn{display:inline-block; position:relative; margin:6px 6px 0 0}
.chkbtn input{position:absolute; opacity:0; inset:0; width:100%; height:100%; cursor:pointer}
.chkbtn span{display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:6px; font-weight:800; letter-spacing:.02em; 
  background:#FCFCFD; color:#36395A; box-shadow:rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset}
.chkbtn input:checked + span{ color:#fff; background-image:radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%); box-shadow:rgba(45,35,66,.4) 0 4px 8px, rgba(45,35,66,.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset }
.chkbtn span:active{transform:translateY(1px)}

/* Admin nav styling: make admin tab red to stand out */
.nav a.admin {
  color: #ff4d4f !important;
  border-color: #ff4d4f !important;
}
.nav a.admin.active,
.nav a.admin:hover {
  background: linear-gradient(180deg, #ffb3b3, #ff4d4f);
  color: #1a0000 !important;
}
.ow-worker-avatar-lg{width:220px;max-width:100%;border-radius:18px;overflow:hidden;display:block;margin:0 auto}
.ow-worker-avatar-lg svg{width:100%;height:auto;display:block}
.rental-active-row{display:flex;align-items:center;gap:10px;margin-top:10px}
.badge.time-badge{background:#0b1624;border:1px solid #243144;color:#cfe3ff;font-weight:700;letter-spacing:.03em}

/* OTTO Map */
.ow-map-area{position:relative;height:620px;margin-top:16px;border-radius:18px;background:rgba(12,20,32,.72);border:1px solid rgba(59,82,112,.55);box-shadow:0 14px 40px rgba(5,10,18,.35);overflow:hidden}
.ow-map-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ow-map-node{position:absolute;min-width:180px;max-width:240px;padding:14px 16px;border-radius:14px;background:rgba(20,30,46,.92);border:1px solid rgba(95,128,178,.6);box-shadow:0 12px 28px rgba(0,0,0,.32);color:#dce9ff;cursor:grab;user-select:none;transition:box-shadow .18s ease, transform .18s ease}
.ow-map-node:hover{box-shadow:0 16px 36px rgba(0,0,0,.36)}
.ow-map-node.dragging{cursor:grabbing;box-shadow:0 18px 42px rgba(0,0,0,.4);transform:scale(1.02)}
.ow-map-node.is-worker{background:linear-gradient(180deg, rgba(47,71,112,.95), rgba(26,40,64,.96));border-color:rgba(110,159,255,.7)}
.ow-map-node.is-tag{background:linear-gradient(180deg, rgba(34,46,68,.92), rgba(22,32,49,.94));border-color:rgba(90,122,166,.65)}
.ow-map-node.is-pending{border-style:dashed;border-color:rgba(255,198,101,.7)}
.ow-map-node-title{font-weight:700;letter-spacing:.02em;margin-bottom:4px}
.ow-map-node-desc{font-size:.82em;color:rgba(214,227,255,.75);margin-top:6px;line-height:1.45}
.ow-map-node-meta{font-size:.75em;color:rgba(170,196,238,.75);margin-top:6px;text-transform:uppercase;letter-spacing:.08em}
.ow-map-node-meta.pending{color:#f9d870}
.ow-map-node-edit{margin-top:8px;text-align:right}
.tiny-link{font-size:.72rem;color:#8cb9ff;text-decoration:none;text-transform:uppercase;letter-spacing:.09em}
.tiny-link:hover{text-decoration:underline}

.ow-map-link{fill:none;stroke:rgba(118,160,255,.55);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ow-map-link.is-output{stroke:#4ade80}
.ow-map-link.is-input{stroke:#7dd3fc;stroke-dasharray:6 4}

#owMapStatus{min-height:18px;line-height:1;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}
#owMapStatus.is-error{color:#ff7b7b}
#owMapStatus.is-success{color:#34d399}

@media (max-width:900px){
  .ow-map-area{height:520px}
  .ow-map-node{min-width:150px;max-width:200px;padding:12px 14px}
}

.tag-browser-panel{border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:0;overflow:hidden;background:rgba(255,255,255,0.92);}
.tag-browser-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;color:#1f2937;font-weight:600;font-size:1rem;padding:1rem 1.2rem;border:none;cursor:pointer;text-align:left;}
.tag-browser-toggle:focus{outline:2px solid rgba(37,99,235,0.4);outline-offset:2px;}
.tag-browser-toggle .chevron{width:12px;height:12px;border-right:2px solid #2563eb;border-bottom:2px solid #2563eb;transform:rotate(45deg);transition:transform .2s ease;}
.tag-browser-panel.expanded .tag-browser-toggle .chevron{transform:rotate(225deg);}
.tag-browser-content{padding:0 1.2rem 1.2rem;display:none;}
.tag-browser-panel.expanded .tag-browser-content{display:block;}
.tag-browser-controls{display:flex;gap:0.75rem;flex-wrap:wrap;margin-top:0.6rem;}
.tag-browser-table-wrap{margin-top:1rem;max-height:260px;overflow:auto;border:1px solid rgba(148,163,184,0.14);border-radius:14px;background:rgba(248,250,252,0.93);}
.tag-browser-table-wrap .tag-table{margin:0;border:0;}
.tag-browser-table-wrap .tag-table tr:first-child th{position:sticky;top:0;background:rgba(248,250,252,0.98);}

.webhook-card input[type="url"],
.webhook-card input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.45);
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  background: rgba(248,250,252,0.95);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.webhook-card input[type="url"]:focus,
.webhook-card input[type="text"]:focus {
  outline: none;
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.webhook-card .ow-toggle {
  margin-top: 0.8rem;
}

.worker-side .side-card{border:1px solid rgba(148,163,184,.18);border-radius:20px;background:rgba(255,255,255,0.94);box-shadow:0 18px 40px rgba(15,23,42,.08);overflow:hidden;margin-top:1rem;}
.worker-side .side-card__toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;background:transparent;border:none;font-weight:600;font-size:1rem;color:#1f2937;cursor:pointer;text-align:left;}
.worker-side .side-card__toggle:focus{outline:2px solid rgba(37,99,235,0.35);outline-offset:2px;}
.worker-side .side-card__toggle .chevron{width:12px;height:12px;border-right:2px solid #2563eb;border-bottom:2px solid #2563eb;transform:rotate(45deg);transition:transform .2s ease;}
.worker-side .side-card.expanded .side-card__toggle .chevron{transform:rotate(225deg);}
.worker-side .side-card__body{padding:0 1.2rem 1.2rem;}
.worker-side .side-card__body[hidden]{display:none;}

.ow-loader-card {
  border: 1px dashed rgba(132, 176, 255, 0.35);
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.75), rgba(16, 24, 42, 0.75));
  box-shadow: 0 6px 18px rgba(8, 12, 24, 0.55);
  animation: owLoaderPulse 1.2s ease-in-out infinite alternate;
}

.ow-loader-card .loader-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(125, 210, 255, 0.25);
  border-top-color: rgba(125, 210, 255, 0.9);
  border-radius: 50%;
  animation: owLoaderSpin .8s linear infinite;
}

@keyframes owLoaderPulse {
  from { box-shadow: 0 6px 18px rgba(8, 12, 24, 0.45); border-color: rgba(132, 176, 255, 0.3); }
  to   { box-shadow: 0 10px 24px rgba(12, 20, 38, 0.6); border-color: rgba(132, 176, 255, 0.55); }
}

@keyframes owLoaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
