:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #233b57;
    --primary-hover: #172b43;
    --soft: #eef2f6;
    --danger: #b42318;
    --success: #067647;
    --waiting: #9a6700;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(20, 30, 45, 0.08);
}
* { box-sizing: border-box; }
html {
    min-height: 100%;
    font-family: "Yu Gothic UI","Meiryo",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: var(--text);
    background: var(--bg);
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, rgba(35,59,87,.06), transparent 35%), var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow-container { width: min(600px, calc(100% - 40px)); }
.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.brand { display:flex; align-items:center; gap:12px; color:var(--text); }
.brand:hover { text-decoration:none; }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--primary); color:white; font-weight:800; font-size:20px; }
.brand strong,.brand small { display:block; }
.brand small { margin-top:2px; color:var(--muted); font-size:11px; }
.main-nav { display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.main-nav a { color:#344054; font-size:14px; font-weight:600; }
main { flex:1; }
.hero { padding:96px 0; }
.hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr); gap:72px; align-items:center; }
.eyebrow { margin:0 0 12px; color:var(--primary); font-size:12px; font-weight:800; letter-spacing:.14em; }
.hero h1,.page-heading h1,.auth-heading h1 { margin:0; letter-spacing:-.04em; }
.hero h1 { font-size:clamp(42px,6vw,68px); line-height:1.12; }
.lead { max-width:640px; margin:28px 0 0; color:var(--muted); font-size:18px; line-height:1.9; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:36px; }
.button { min-height:46px; padding:0 20px; border:1px solid transparent; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:.15s ease; }
.button:hover { text-decoration:none; }
.button-primary { background:var(--primary); color:white; }
.button-primary:hover { background:var(--primary-hover); }
.button-secondary { background:white; border-color:#d0d5dd; color:#344054; }
.button-secondary:hover { background:#f9fafb; }
.button-full { width:100%; margin-top:10px; }
.button-small { min-height:36px; padding:0 13px; font-size:12px; }
.hero-card,.auth-card,.panel,.table-card { background:var(--surface); border:1px solid rgba(228,231,236,.9); border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-card { padding:30px; }
.hero-card h2,.panel h2 { margin:0 0 22px; font-size:18px; }
.feature-row { display:grid; grid-template-columns:44px 1fr; gap:14px; padding:20px 0; border-top:1px solid var(--line); }
.feature-row:first-of-type { border-top:0; }
.feature-number { color:#98a2b3; font-size:12px; font-weight:800; }
.feature-row p { margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.7; }
.page-section { padding:64px 0 80px; }
.auth-card { padding:38px; }
.auth-heading { margin-bottom:30px; }
.auth-heading p:last-child,.page-heading p { margin:10px 0 0; color:var(--muted); line-height:1.7; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:8px; color:#344054; font-size:13px; font-weight:700; }
.form-group input { width:100%; height:46px; padding:0 13px; border:1px solid #d0d5dd; border-radius:9px; background:white; color:var(--text); font:inherit; outline:none; }
.form-group input:focus { border-color:#667f9d; box-shadow:0 0 0 3px rgba(35,59,87,.10); }
.checkbox-row { margin:2px 0 20px; display:flex; gap:9px; align-items:center; color:#475467; font-size:14px; }
.field-validation,.validation-summary { color:var(--danger); font-size:13px; }
.field-validation { display:block; margin-top:6px; }
.validation-summary ul { margin:0 0 20px; padding:12px 14px 12px 32px; border-radius:8px; background:#fef3f2; }
.validation-summary:empty { display:none; }
.auth-footer { margin:26px 0 0; text-align:center; color:var(--muted); font-size:14px; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; margin-bottom:28px; }
.account-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.panel { padding:30px; }
.panel-heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px; }
.panel-heading-row h2 { margin-bottom:14px; }
.detail-list { margin:0; }
.detail-list > div { display:grid; grid-template-columns:140px 1fr; gap:20px; padding:15px 0; border-top:1px solid var(--line); }
.detail-list > div:first-child { border-top:0; }
.detail-list dt { color:var(--muted); font-size:13px; }
.detail-list dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.status { display:inline-flex; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.status-ok { background:#ecfdf3; color:var(--success); }
.status-ng { background:#fef3f2; color:var(--danger); }
.status-waiting { background:#fffaeb; color:var(--waiting); }
.empty-state { padding:22px; border-radius:12px; background:var(--soft); }
.empty-state p { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.7; }
.site-footer { padding:26px 0; border-top:1px solid var(--line); color:#98a2b3; font-size:12px; }
.muted { color:var(--muted); font-weight:400; }
.inline-link { display:inline-block; margin-left:10px; font-size:13px; }
.license-detail { display:block; margin-top:8px; color:var(--muted); font-size:13px; font-weight:400; }
.license-rule-note { margin:22px 0 0; padding:14px 16px; border-radius:10px; background:var(--soft); color:var(--muted); font-size:13px; line-height:1.7; }
.notice { margin:0 0 24px; padding:14px 16px; border-radius:10px; font-size:14px; }
.notice-success { background:#ecfdf3; color:#05603a; }
.notice-error { background:#fef3f2; color:var(--danger); }
.product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.product-card { display:flex; flex-direction:column; }
.product-card h2 { margin-bottom:10px; }
.product-type { margin:0 0 8px; color:var(--primary); font-size:12px; font-weight:800; letter-spacing:.06em; }
.product-detail { min-height:46px; margin:0; color:var(--muted); line-height:1.6; }
.product-price { margin:24px 0 10px; font-size:18px; }
.table-card { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:820px; }
.data-table th,.data-table td { padding:15px 18px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; font-size:13px; }
.data-table th { background:#f8fafc; color:#475467; font-size:12px; }
.data-table tr:last-child td { border-bottom:0; }
.mono { font-family:Consolas,"Courier New",monospace; font-size:12px; }

@media (max-width: 820px) {
    .header-inner,.page-heading { align-items:flex-start; flex-direction:column; }
    .header-inner { padding:16px 0; }
    .main-nav { width:100%; flex-wrap:wrap; gap:16px; }
    .hero { padding:58px 0; }
    .hero-grid,.account-grid,.product-grid { grid-template-columns:1fr; }
    .hero-grid { gap:36px; }
    .auth-card,.panel,.hero-card { padding:24px; }
    .detail-list > div { grid-template-columns:1fr; gap:5px; }
}


/* Device-bound license additions */
.license-token-panel {
    margin-top: 24px;
}
.panel-subtitle {
    margin: -6px 0 0;
    font-size: 13px;
    line-height: 1.6;
}
.device-list {
    display: grid;
    gap: 10px;
}
.device-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.device-item:first-child {
    border-top: 0;
}
.device-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}
.embedded-table-card {
    box-shadow: none;
    border-radius: 12px;
}
.license-table {
    min-width: 900px;
}
