:root{--green:#124559;--green-dark:#01161e;--tan:#598392;--ink:#01161e;--muted:#598392;--line:#d7e2d3;--soft:#eff6e0;--white:#fff;--danger:#9a3131;--shadow:0 14px 42px rgba(1,22,30,.09)}

*{box-sizing:border-box}
html{min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
body{min-height:100%;margin:0;background:#fff}
a{color:var(--green-dark);text-decoration:none}
button,input,textarea,select{font:inherit}
.topbar{position:sticky;top:0;z-index:1000;display:flex;align-items:center;gap:32px;min-height:76px;padding:0 4vw;border-bottom:1px solid rgba(255,255,255,.16);background:var(--green);box-shadow:0 8px 26px rgba(1,22,30,.15)}
.brand{display:flex;align-items:center;flex:0 0 auto;gap:13px;color:#fff;font-weight:800}
.brand img{display:block;width:135px;height:42px;object-fit:contain}
.brand span{padding-left:13px;border-left:1px solid rgba(255,255,255,.3)}
.topbar nav{display:flex;align-items:stretch;align-self:stretch;flex:1;gap:4px;min-width:0;overflow-x:auto}
.topbar nav a{display:flex;align-items:center;padding:0 12px;border-bottom:3px solid transparent;color:rgba(255,255,255,.76);font-size:14px;font-weight:750;white-space:nowrap}
.topbar nav a:hover{color:#fff}
.topbar nav a.active{border-color:var(--sage,#aec3b0);color:#fff}
.user{flex:0 0 auto;color:rgba(255,255,255,.82);font-size:13px;white-space:nowrap}
.shell{width:min(1500px,92vw);margin:0 auto;padding:42px 0 75px}
.page-head,.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.page-head{margin-bottom:26px}
.page-head h1{margin:3px 0 5px;color:var(--green-dark);font-size:clamp(36px,5vw,58px);line-height:1}
.page-head p,.panel-head p{margin:0;color:var(--muted)}
.panel{padding:25px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.panel h2,.panel h3{margin-top:0;color:var(--green-dark)}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dashboard-link{color:var(--ink)}
.dashboard-link>span{color:var(--tan);font-weight:850}
.dashboard-link h2{margin:8px 0}
.dashboard-link p{margin:0;color:var(--muted)}
.stack{display:grid;gap:17px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
label{display:grid;gap:7px;font-weight:750}
label small,.muted{color:var(--muted);font-size:13px;font-weight:500}
input,textarea,select{min-width:0;width:100%;padding:12px 13px;border:1px solid #cfd6d3;border-radius:8px;background:#fff;color:var(--ink)}
textarea{resize:vertical}
input:focus,textarea:focus,select:focus{outline:3px solid rgba(18,69,89,.15);border-color:var(--green)}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--green)}
.color-control{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:center}
.color-control input[type=color]{display:block;width:100px;height:40px;min-height:40px;padding:0;border:1px solid #cfd6d3;border-radius:8px;background:#fff;cursor:pointer}
.color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}
.color-control input[type=color]::-moz-color-swatch{border:0;border-radius:7px}
.color-control input[type=text]{height:40px;padding-top:8px;padding-bottom:8px;text-transform:uppercase}
.actions{display:flex;flex-wrap:wrap;gap:9px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:8px;cursor:pointer;font-weight:800}
.button.primary{background:var(--green);color:#fff}
.button.secondary{border-color:var(--green);background:#fff;color:var(--green-dark)}
.button.danger{border-color:var(--danger);background:#fff;color:var(--danger)}
.button.text{min-height:0;padding:7px 10px}
.notice{margin-bottom:20px;padding:14px 16px;border-radius:8px;background:#fff}
.notice.success{border-left:5px solid #6d9131}
.notice.error{border-left:5px solid var(--danger)}
.table-panel{margin:0 0 24px;padding:0;overflow:hidden}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:15px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{background:#f7f8f7;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
td strong,td small{display:block}
td small{margin-top:4px;color:var(--muted)}
.date-cell{white-space:nowrap}
.completion-cell{display:grid;grid-template-columns:42px minmax(90px,130px);gap:9px;align-items:center}
.completion-cell>strong{font-size:13px;text-align:right}
.completion-bar{display:block;height:8px;overflow:hidden;border-radius:999px;background:#e3e8e5}
.completion-bar>span{display:block;height:100%;border-radius:inherit;background:var(--green)}
tr.reset-alert>td{background:#ffdada}
.credentials{margin-bottom:24px;border-color:var(--green)}
.credentials p{color:var(--muted)}
.credential-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
.credentials-focus{border-width:2px}
.credentials-focus .panel-head{align-items:flex-start;margin-bottom:22px}
.credentials-focus .panel-head h2{margin-bottom:7px}
.project-page-head{margin-bottom:22px}
.project-editor-panel{margin-bottom:24px}
.copy-field{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px}
.icon-button{display:grid;width:48px;min-height:44px;padding:12px;border:1px solid var(--green);border-radius:8px;background:#fff;cursor:pointer;place-items:center}
.icon-button:hover{background:var(--soft)}
.icon-button img,.button-with-icon img{display:block;width:19px;height:19px;object-fit:contain}
.table-link-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.table-copy-button{display:grid;width:31px;height:31px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer;place-items:center}
.table-copy-button:hover{border-color:var(--green);background:var(--soft)}
.table-copy-button img{display:block;width:15px;height:15px}
.button-with-icon{gap:9px}
.button-with-icon img{filter:none}
.button.primary.button-with-icon img{filter:invert(1)}
.manage-danger-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.copy-toast{position:fixed;right:22px;bottom:22px;z-index:1200;padding:11px 15px;border-radius:8px;background:var(--green-dark);color:#fff;opacity:0;transform:translateY(10px);pointer-events:none;transition:.18s ease}
.copy-toast.show{opacity:1;transform:translateY(0)}
.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eceeed;color:#666;font-size:12px;font-weight:800}
.badge.success{background:var(--soft);color:var(--green-dark)}
.badge.pending{background:#f6eadb;color:#875a28}
.panel-padding{padding:24px 25px 10px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.project-card{position:relative;display:grid;gap:15px;color:var(--ink)}
.project-card h2{margin:0}
.project-card p{margin:0;color:var(--muted)}
.project-meta{display:flex;flex-wrap:wrap;gap:7px}
.progress{height:9px;overflow:hidden;border-radius:999px;background:#e7eae8}
.progress span{display:block;height:100%;background:var(--green)}
.auth-page{display:grid;min-height:100vh;padding:25px;background:linear-gradient(135deg,var(--green-dark),var(--green))}
.auth-card{width:min(520px,100%);margin:auto;padding:34px;border-radius:8px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.24)}
.auth-card>img{display:block;width:230px;max-height:100px;margin-bottom:25px;object-fit:contain;object-position:left center}
.auth-card h1{margin:4px 0 24px;color:var(--green-dark)}
.install-card{width:min(900px,100%)}
.editor-head{position:sticky;top:76px;z-index:20;margin-bottom:20px;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.96);box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.editor-head-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.editor-head h1{margin:0;color:var(--green-dark)}
.save-state{color:var(--muted);font-size:13px;font-weight:700}
.editor-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.editor-tabs button{padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--green-dark);font-weight:800;cursor:pointer}
.editor-tabs button.active{border-color:var(--green);background:var(--green);color:#fff}
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.page-list{display:grid;gap:18px}
.page-card{overflow:hidden;padding:0}
.page-card>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;background:var(--green-dark);color:#fff;font-weight:850;cursor:pointer;list-style:none}
.page-card>summary::-webkit-details-marker{display:none}
.page-body{display:grid;gap:18px;padding:22px}
.approval-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.approval-grid label{display:flex;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fafbfa;font-size:13px}
.editor-side{position:sticky;top:192px;display:grid;gap:18px}
.sticky-note{padding:16px;border:1px solid rgba(0,0,0,.08);border-radius:4px;background:#f6df77;box-shadow:0 8px 18px rgba(0,0,0,.09);transform:rotate(-.6deg)}
.sticky-note textarea{min-height:100px;border:0;background:transparent;outline:0}
.dropzone{display:grid;min-height:120px;padding:18px;border:2px dashed #bdc8c5;border-radius:8px;background:#fafbfa;place-items:center;text-align:center;cursor:pointer}
.asset-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.asset{overflow:hidden;border:1px solid var(--line);border-radius:8px}
.asset img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.asset label{padding:8px}
.empty{padding:30px;border:1px dashed #c9cfcc;border-radius:8px;background:#fff;color:var(--muted);text-align:center}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:20px}
.subscription-sheet{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.subscription-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:35px;padding:34px 38px;background:var(--green-dark);color:#fff}
.subscription-heading h2{margin:0 0 8px;color:#fff;font-size:clamp(32px,4vw,48px);line-height:1}
.subscription-heading p{max-width:760px;margin:0;color:rgba(255,255,255,.78);font-size:17px}
.subscription-price{display:grid;flex:0 0 auto;text-align:right}
.subscription-price strong{font-size:32px;line-height:1;color:#fff}
.subscription-price span{margin-top:7px;color:rgba(255,255,255,.72);font-size:13px}
.subscription-usage{padding:26px 38px;border-bottom:1px solid var(--line);background:#f7f8f7}
.subscription-usage>div:first-child{display:flex;justify-content:space-between;gap:20px;margin-bottom:11px}
.subscription-usage span{color:var(--muted)}
.subscription-progress{height:12px;overflow:hidden;border-radius:999px;background:#dfe5e2}
.subscription-progress span{display:block;height:100%;border-radius:inherit;background:var(--tan)}
.subscription-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr)}
.subscription-content>section{padding:34px 38px}
.subscription-content>section+section{border-left:1px solid var(--line);background:#fbfcfb}
.subscription-content h3{margin:0 0 22px;color:var(--green-dark);font-size:24px}
.subscription-features{display:grid;gap:13px;margin:0;padding:0;list-style:none}
.subscription-features li{position:relative;padding-left:30px}
.subscription-features li::before{position:absolute;top:2px;left:0;display:grid;width:20px;height:20px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;font-weight:900;content:"✓";place-items:center}
.subscription-details{margin:0}
.subscription-details>div{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1fr);gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}
.subscription-details>div:first-child{padding-top:0}
.subscription-details>div:last-child{padding-bottom:0;border-bottom:0}
.subscription-details dt{color:var(--muted)}
.subscription-details dd{margin:0;text-align:right;font-weight:750}
.danger-zone{border-color:#efb8c6;background:#fff8fa}
.configure-page-head{margin-bottom:22px}
.configure-panel{padding:25px;overflow:hidden}
.configure-frame{display:block;width:100%;min-height:700px;border:0;background:transparent}
.export-page-head{margin-bottom:22px}
.export-panel{padding:0;overflow:hidden}
.export-frame{display:block;width:100%;height:calc(100vh - 245px);min-height:700px;border:0;background:#f7f7f7}
code{word-break:break-all;border-radius:5px;background:#f0f2f2;padding:3px 6px}
footer{padding:16px 20px;color:#888;font-size:11px;line-height:1.45;text-align:center}
@media(max-width:1100px){.topbar{flex-wrap:wrap;gap:10px 25px;padding:13px 4vw}
.topbar nav{order:3;width:100%;min-height:48px}
.editor-head{top:116px}
.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.editor-layout,.settings-grid,.subscription-content{grid-template-columns:1fr}
.subscription-content>section+section{border-top:1px solid var(--line);border-left:0}
.editor-side{position:static}
}
@media(max-width:720px){.brand span,.user{display:none}
.shell{width:100%;padding:28px 17px 60px}
.page-head,.panel-head,.editor-head-row{align-items:flex-start;flex-direction:column}
.dashboard-grid,.project-grid,.fields,.approval-grid,.credential-grid{grid-template-columns:1fr}
.editor-head{position:static}
.asset-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.subscription-heading{align-items:flex-start;flex-direction:column;padding:27px 23px}
.subscription-price{text-align:left}
.subscription-usage,.subscription-content>section{padding:24px 23px}
.subscription-usage>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}
.subscription-details>div{grid-template-columns:1fr;gap:4px}
.subscription-details dd{text-align:left}
}
