@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #22343a;
    --muted: #627478;
    --navy: #172d35;
    --selected: #2d494d;
    --brand: #45685b;
    --brand-hover: #345446;
    --bg: #f4f6f6;
    --line: #e1e8e6;
    --surface: #fff;
    --radius: 5px;
    --sidebar: 236px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.65 "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(22px, 3vw, 29px); line-height: 1.32; letter-spacing: .015em; }
h2 { font-size: 16px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }
:focus-visible { outline: 2px solid #338777; outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 10; background: white; padding: 8px 12px; }
.skip:focus { top: 12px; }
.topbar { display: flex; align-items: center; gap: 18px; height: 61px; padding: 0 25px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar form { margin-left: auto; }
.wordmark { display: inline-flex; flex: none; align-items: center; }
.wordmark img, .login-brand img { display: block; object-fit: contain; max-width: 100%; height: auto; }
.workspace-name { color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; font-weight: 600; }
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - 61px); }
.sidebar { background: var(--navy); color: #d3e1e2; padding: 24px 15px; }
.nav-group { margin: 0 11px 10px; color: #b6c9ce; font-size: 12px; font-weight: 650; }
.nav-link { display: block; padding: 9px 12px; border-radius: var(--radius); margin-bottom: 4px; }
.nav-link:hover, .nav-link[aria-current] { background: var(--selected); color: white; }
.nav-link[aria-current] { font-weight: 650; }
.help-link { margin-top: 12px; }
.main { padding: 24px clamp(18px, 3.2vw, 42px) 42px; width: 100%; max-width: 1510px; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.breadcrumb span { margin: 0 9px; color: #879a98; }
.breadcrumb a:hover { text-decoration: underline; }
.page-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-heading { margin-bottom: 20px; }
.page-heading > div { min-width: 0; overflow-wrap: anywhere; }
.product-id { display: inline-block; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; min-width: 0; }
.panel-heading { min-height: 50px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-body { padding: 17px; }
.form-body.stack { max-width: 680px; }
.stack { display: grid; gap: 13px; }
.fields, .form-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.fields label { flex: 1 1 180px; }
label { display: grid; gap: 5px; font-weight: 620; color: var(--ink); min-width: 0; }
input, textarea, select { color: var(--ink); background: #f9fbfa; border: 1px solid #cdd9d6; border-radius: var(--radius); min-height: 37px; padding: 6px 10px; max-width: 100%; font-weight: 400; }
input[type=file] { padding: 5px 7px; }
input[type=file]::file-selector-button { font: inherit; color: var(--ink); border-radius: 3px; background: var(--surface); padding: 4px 8px; border: 1px solid var(--line); margin-right: 8px; cursor: pointer; }
textarea { resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.26; min-height: 37px; padding: 7px 12px; text-align: center; border: 1px solid transparent; border-radius: var(--radius); font-weight: 620; cursor: pointer; white-space: nowrap; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.primary:hover { background: var(--brand-hover); }
.button.secondary { border-color: #ccd9d4; background: white; color: #344d48; }
.button.secondary:hover, .button.quiet:hover { background: #eaf0ed; }
.button.quiet { color: #38524c; background: transparent; font-size: 12px; }
.button.small { min-height: 33px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line); }
th { color: #5a6e6f; font-size: 12px; background: #f6f8f7; white-space: nowrap; }
td { overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfb; }
.product-link { font-weight: 650; }
.product-link:hover { text-decoration: underline; color: var(--brand); }
code, .hint, .table-footer { font-size: 12px; color: var(--muted); }
.table-footer { padding: 9px 15px; border-top: 1px solid var(--line); }
.empty { padding: 22px 16px; color: var(--muted); }
.status-cell { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 4px; white-space: nowrap; color: #4f6262; background: #ebf0ef; font-size: 12px; }
.pill.current { color: #265c47; background: #e3efe7; }
.pill.expired { color: #754518; background: #f7ecd8; }
.ip-field { min-width: 135px; }
.notice, .error { margin: 0 0 13px; padding: 10px 12px; border: 1px solid; border-radius: var(--radius); }
.notice { background: #e9f4ed; color: #22543b; border-color: #cfe6d8; }
.error { background: #fceeee; color: #812e2e; border-color: #edcdcd; }
ul.error { padding-left: 30px; }
.guide { padding: 4px 18px; }
.guide ol { padding-left: 24px; margin: 0; }
.guide li { padding: 15px 7px; }
.guide li + li { border-top: 1px solid var(--line); }
.guide li p { margin-top: 5px; color: #4c6264; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(240px, 42%) 1fr; }
.login-brand { background: #e9efec; display: grid; place-items: center; padding: 30px; }
.login-panel { background: white; display: grid; align-items: center; justify-items: center; padding: 32px; }
.login-form { width: min(100%, 355px); gap: 16px; }
.login-form h1 { margin-bottom: 7px; }
.login-form .button { margin-top: 3px; }
@media (max-width: 1000px) {
    :root { --sidebar: 182px; }
    .status-cell { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 760px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 7px 12px; }
    .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
    .nav-group { display: none; }
    .nav-link, .help-link { margin: 0; }
    .main { padding-top: 18px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .workspace-name { display: none; }
    .topbar { padding: 0 14px; height: 54px; }
    .page-heading { align-items: start; }
}
@media (max-width: 520px) {
    .login { grid-template-columns: 1fr; grid-template-rows: 134px 1fr; }
    .login-brand img { width: min(170px, 100%); }
    .login-panel { align-items: start; padding-top: 52px; }
    .page-heading { flex-wrap: wrap; }
}
