:root{font-family:Arial,"Segoe UI",sans-serif;color:#16373d;background:#f1f4f2;line-height:1.5;font-size:16px;--ink:#16373d;--green:#174d4c;--line:#d7e1dc;--muted:#5b706e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:white;color:var(--ink);cursor:pointer;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{background:#e9f1e9;border-color:#82a998}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#27625d}.danger{color:#a3372c}.ghost{background:transparent}input,select,textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid #b8cbc2;border-radius:8px;background:white;color:var(--ink)}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #b0d78b;outline-offset:2px}label{display:grid;gap:6px;font-size:14px;font-weight:600}form{display:grid;gap:18px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1px;line-height:1.2}h2{font-size:23px;line-height:1.25}h3{font-size:19px}small,.muted{color:var(--muted)}a{color:#246454}header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:18px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:800;font-size:25px}.brand img{width:37px}.brand small{font-size:12px;font-weight:500;border-left:1px solid var(--line);padding-left:12px}.header-actions{display:flex;align-items:center;gap:8px}.wrap{max-width:1320px;margin:0 auto;padding:40px 34px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.8px;color:#4b6f62;text-transform:uppercase;margin-bottom:10px}.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}.intro p{max-width:700px;color:var(--muted);margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 24px}.stat strong{font-size:30px;display:block}.stat span{font-size:14px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:20px}.card{border:1px solid var(--line);border-radius:14px;background:white;padding:25px;display:flex;flex-direction:column;gap:15px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.code{font-size:12px;letter-spacing:.7px;color:var(--muted)}.badge{font-size:12px;border-radius:30px;padding:4px 10px;background:#e8eee9;white-space:nowrap}.badge.active{background:#e5f1ce;color:#355b22}.badge.warn{background:#fff0d6;color:#875b0c}.card h3{margin:0;line-height:1.4}.card .desc{color:var(--muted);font-size:14px;min-height:42px;margin:0}.card dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}dt{font-size:12px;color:var(--muted)}dd{margin:4px 0 0;font-weight:600;font-size:14px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.spread{justify-content:space-between}.empty{border:1px dashed #aec2b7;border-radius:12px;padding:36px;text-align:center;background:white;color:var(--muted)}.note{background:#edf2e8;border-left:3px solid #8da76b;padding:12px 16px;font-size:14px}.login{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-story{background:#123e43;color:#edf4ee;padding:64px 8vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-story .brand{color:white;margin-bottom:70px}.login-story h1{font-size:clamp(36px,4vw,58px);max-width:570px}.login-story p{color:#b9d1cd;max-width:440px;font-size:18px}.road-mark{height:90px;border-top:2px solid #567f77;border-bottom:2px solid #567f77;transform:rotate(-8deg);margin:55px -20px 10px;position:relative}.road-mark:after{content:"";position:absolute;left:0;right:0;top:44px;border-top:2px dashed #c6e7a9}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-form section{max-width:420px;width:100%}.login-form h2{font-size:28px}.login-form form{margin-top:28px}.login-form footer{margin-top:30px;color:var(--muted);font-size:13px}.form-error{color:#a3372c;min-height:24px;margin:0}.loading{padding:80px;text-align:center}.tabs{display:flex;gap:8px;margin:26px 0}.tabs button.selected{background:var(--green);color:white}.admin-grid{display:grid;grid-template-columns:360px 1fr;gap:24px}.panel{padding:24px;border:1px solid var(--line);border-radius:12px;background:white}.scroll{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}.table th{font-size:12px;color:var(--muted);background:#f4f7f4}.table td button{font-size:12px;padding:8px;min-height:38px}.project-bar{padding:14px 24px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.project-bar h2{font-size:18px;margin:0}.project-bar small{display:block}#editor{width:100%;height:calc(100vh - 167px);border:0;display:block;background:white}#notice{position:fixed;bottom:22px;right:24px;max-width:520px;padding:16px 22px;border-radius:10px;background:#174d4c;color:white;box-shadow:0 8px 25px #0002;z-index:100000}#notice.error{background:#842f28}dialog{border:1px solid var(--line);border-radius:14px;max-width:760px;width:calc(100% - 36px);max-height:90vh;padding:26px;box-shadow:0 24px 100px #0003}dialog::backdrop{background:#092f3d77}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.modal-head h2{margin:0}.secret{word-break:break-all;font-family:monospace;background:#f1f4ed;padding:16px;border:1px solid var(--line);border-radius:8px}.file{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;align-items:center}.file strong{font-size:14px;overflow-wrap:anywhere}.file small{display:block}.error-box{padding:30px;border:1px solid #e1aaa4;background:#fff5f3;border-radius:12px}.test-banner{background:#fff0d6;color:#774f12;padding:10px 24px;font-size:13px;text-align:center}.lock{padding:40px;max-width:800px;margin:40px auto}.help{font-size:13px;color:var(--muted);margin:6px 0 0}.save-good{color:#416c2e}.save-bad{color:#ac3e24}footer.page-footer{margin-top:36px;font-size:12px;color:var(--muted)}@media(max-width:800px){header{padding:0 18px;height:auto;min-height:72px}.brand small,.header-actions .email{display:none}.wrap{padding:26px 18px}.intro{display:block}h1{font-size:29px}.stats{gap:9px}.stat{padding:14px}.stat strong{font-size:25px}.cards{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-story{padding:30px 24px}.login-story .brand{margin-bottom:25px}.login-story h1{font-size:33px}.login-story p{font-size:16px}.road-mark{display:none}.login-form{padding:30px 24px}.admin-grid{grid-template-columns:1fr}.project-bar{padding:12px}#editor{height:calc(100vh - 220px)}.row button{flex-grow:1}.card dl{grid-template-columns:1fr 1fr}}

.narrow{max-width:600px;margin:auto}.panel,.admin-grid>div{min-width:0}@media(max-width:800px){header{gap:8px;padding:10px 14px;flex-wrap:wrap}.header-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.header-actions button{padding:8px 10px;font-size:13px}.brand{font-size:22px}.brand img{width:32px}.stats .stat span{font-size:12px}#notice{left:16px;right:16px;max-width:none}}

.company-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:18px;font-size:14px;text-decoration:none}.company-back:hover{text-decoration:underline}@media(max-width:800px){.header-actions .company-home{padding:8px 10px;font-size:13px;min-height:44px}}

/* 0.4.1 work mode: compact bar, editor fills the window */
.work-mode{overflow:hidden}
.work-bar{display:flex;align-items:center;gap:8px;height:44px;padding:0 10px;background:#12406e;color:#fff;font-size:14px}
.work-bar button{min-height:32px;padding:4px 12px;font-size:14px;border-radius:6px;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.25);white-space:nowrap}
.work-bar button:hover{background:rgba(255,255,255,.2)}
.work-bar button.primary{background:#f2b705;color:#18242b;border-color:#f2b705;font-weight:600}
.work-title{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1;overflow:hidden;white-space:nowrap}
.work-title strong{overflow:hidden;text-overflow:ellipsis}
.work-title small{color:#b7c6d8;overflow:hidden;text-overflow:ellipsis}
.work-bar #cloud-state{color:#c9d6e6;white-space:nowrap;font-size:13px}
.work-mode #editor{height:calc(100vh - 44px);height:calc(100dvh - 44px)}
@media(max-width:900px){.work-title small,.work-bar [data-action=fullscreen]{display:none}}
@media(max-width:640px){.work-bar{overflow-x:auto}.work-bar #cloud-state,.work-title{display:none}}
