:root {
    --bg: #f3f5f8;
    --bg-warm: #eef3f7;
    --surface: #ffffff;
    --ink: #152033;
    --muted: #5c6b7a;
    --line: #e2e8ef;
    --navy: #1a365d;
    --navy-soft: #243f66;
    --teal: #0f766e;
    --teal-hover: #0b5f59;
    --teal-soft: #e6f4f2;
    --gold: #c4a35a;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success: #067647;
    --success-bg: #ecfdf3;
    --warning: #b54708;
    --warning-bg: #fffaeb;
    --shadow: 0 1px 2px rgba(21, 32, 51, 0.04), 0 8px 24px rgba(21, 32, 51, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 72px;
    --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background:
        radial-gradient(1200px 400px at 10% -10%, rgba(15, 118, 110, 0.08), transparent 55%),
        radial-gradient(900px 320px at 100% 0%, rgba(26, 54, 93, 0.08), transparent 50%),
        var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 0.75rem;
    line-height: 1.35;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nowrap {
    white-space: nowrap;
}

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 1000;
    background: var(--navy);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    text-align: left;
}

.header-bar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: var(--header-h);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

.header h1,
.header h2,
.header h3,
.header h4,
.header h5 {
    font-size: inherit;
    color: inherit;
    padding-bottom: 0;
    margin: 0;
}

.header img {
    width: auto;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.header a {
    color: var(--ink);
    margin: 0;
    border-bottom: none;
}

.header a:hover {
    border-bottom-color: transparent;
    color: var(--teal);
    text-decoration: none;
}

.pc-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.pc-link a {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pc-link a:hover {
    background: var(--teal-soft);
}

.pc-link a.is-cta {
    background: var(--teal);
    color: #fff;
    padding: 8px 14px;
}

.pc-link a.is-cta:hover {
    background: var(--teal-hover);
    color: #fff;
}

.pc-link a.is-outline {
    border: 1px solid var(--line);
    padding: 7px 13px;
}

.accordion-toggle {
    display: none;
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: var(--surface);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    place-items: center;
}

.accordion-toggle:hover {
    background: var(--teal-soft);
}

.accordion {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 12px 16px;
    box-shadow: var(--shadow);
    opacity: 1;
    border-bottom: 1px solid var(--line);
}

.accordion a {
    display: block;
    padding: 12px 14px;
    color: var(--ink);
    border-radius: 10px;
    font-weight: 500;
}

.accordion a:hover {
    background: var(--teal-soft);
    color: var(--teal);
}

.accordion a.is-cta {
    background: var(--teal);
    color: #fff;
    text-align: center;
    margin-top: 6px;
}

.accordion.active {
    display: block;
}

.page-body {
    flex: 1;
    padding: 28px 16px 56px;
}

/* Content cards */
.container,
.login-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 0;
    padding: 32px 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-container {
    max-width: 440px;
    margin: 24px auto;
    padding: 36px 32px;
}

.container h1,
.container > h2:first-child,
.login-container h1,
.login-container h2 {
    text-align: left;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.container h2.center,
.login-container h2.center {
    text-align: center;
}

.container h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
}

.container h3 {
    font-size: 1.05rem;
    margin-top: 1.4rem;
}

.container img,
.login-container img {
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin: 12px 0 20px;
}

/* Forms */
.input {
    margin-bottom: 16px;
}

.input label,
form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea,
.msg-area {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    margin-bottom: 0;
    border: 1px solid #d5dde6;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea,
.msg-area {
    min-height: 120px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
.msg-area:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--teal);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a365d' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

button,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    padding: 10px 18px;
    margin-top: 8px;
    background: var(--teal);
    color: #fff;
    border: 1px solid var(--teal);
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--teal-hover);
    color: #fff;
    text-decoration: none;
}

button:disabled,
input[type="submit"]:disabled {
    background: #c5ced6;
    border-color: #c5ced6;
    color: #fff;
    cursor: not-allowed;
}

form button[type="submit"],
form input[type="submit"] {
    width: 100%;
    margin-top: 12px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.button-row .button,
.button-row button {
    width: auto;
}

.button.secondary,
a.button.secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
}

.button.secondary:hover {
    background: var(--bg);
    color: var(--navy);
}

.form-note {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.login-container p {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
}

.container table,
.login-container table,
.terms-table,
#paymentTable {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.container table th,
.container table td,
.terms-table th,
.terms-table td,
#paymentTable th,
#paymentTable td,
.contact_table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.container table tr:last-child td,
.terms-table tr:last-child td,
#paymentTable tr:last-child td {
    border-bottom: none;
}

.container table th,
.terms-table th,
#paymentTable th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
}

.terms-table tr:nth-child(even),
.container table tr:nth-child(even) {
    background-color: #f8fafc;
}

.container table tr.is-latest {
    background-color: var(--teal-soft);
}

.contact_table {
    border: none;
    background: transparent;
}

.contact_table td {
    border: none;
    padding: 6px 0 14px;
}

.contact_table td:first-child {
    width: 180px;
    font-weight: 600;
    color: var(--navy);
    padding-top: 18px;
}

.contact_table .input {
    margin-bottom: 0;
}

/* Flash */
.message {
    max-width: 880px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.message.success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #abefc6;
}

.message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #fecdca;
}

.message.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #fedf89;
}

/* Notices */
ul.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.notice-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 18px 20px;
    box-shadow: none;
}

ul.notice-list li h3 {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
}

ul.notice-list li h5 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--navy);
}

ul.notice-list li p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
}

ul.notice-list li p:last-child {
    margin-bottom: 0;
}

/* FAQ */
.faq-section {
    margin-bottom: 8px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 10px;
    background: #fff;
}

.faq-item summary,
.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
}

.faq-item summary:hover {
    background: #f8fafc;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--line);
}

.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 16px 16px;
    color: var(--muted);
}

.faq-question .icon,
.faq-answer .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0;
    font-size: 11px;
    font-weight: 700;
}

.faq-question .icon {
    background-color: var(--navy);
}

.faq-answer .icon {
    background-color: var(--teal);
}

.faq-question p,
.faq-answer p {
    margin: 0;
}

.separator {
    display: none;
}

/* Tabs */
.tab {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    margin: 12px 0 16px;
}

.tab div,
.tab-item {
    padding: 8px 14px;
    margin-right: 0;
    background-color: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.tab div.active,
.tab-item.active {
    background-color: var(--navy);
    color: #fff;
    border-color: var(--navy);
    font-weight: 700;
}

.terms-table.env-table {
    display: none;
}

.terms-table.env-table.active {
    display: table;
}

/* Admin filters */
#showButton,
#downloadCsvButton {
    width: auto;
    display: inline-flex;
    place-self: auto;
}

#downloadCsvButton {
    display: none;
}

form:has(#year) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

form:has(#year) label {
    margin-bottom: 4px;
}

form:has(#year) select {
    width: 120px;
}

form:has(#year) button {
    width: auto;
}

#paymentTable {
    padding: 0;
    text-align: left;
}

#loadingMessage,
#loading {
    text-align: center;
    color: var(--muted);
}

/* Home */
.home {
    max-width: 1120px;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 28px 8px 48px;
}

.hero-copy h1 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy p {
    color: var(--muted);
    font-size: 16px;
    max-width: 36em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.hero-visual {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-visual img {
    max-width: 220px;
    margin: 0 auto;
    border: none;
    background: transparent;
}

.container .feature-grid {
    margin: 8px 0 24px;
}

.container .feature-card {
    box-shadow: none;
    background: #f8fafc;
}

#start-year,
#start-month,
#end-year,
#end-month {
    width: calc(50% - 6px);
    display: inline-block;
    vertical-align: top;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.hero-point {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
}

.hero-point i {
    color: var(--teal);
    margin-top: 4px;
}

.home-flow {
    margin-top: 56px;
}

.callout {
    background: var(--teal-soft);
    border: 1px solid #cde8e4;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.callout p {
    margin-bottom: 8px;
}

.callout p:last-child {
    margin-bottom: 0;
}

.section-head {
    text-align: center;
    margin: 12px 0 28px;
}

.section-head h2 {
    font-size: 1.6rem;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.top-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 1;
    text-align: left;
    margin: 0;
}

.feature-card img,
.top-section img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.feature-body {
    padding: 20px 22px 24px;
}

.feature-card h2,
.top-section h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.feature-card p,
.top-section p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 40px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.cta-band {
    margin: 12px 0 8px;
    padding: 36px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 58%, #0f766e 140%);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 8px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
}

.cta-band .button {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.cta-band .button:hover {
    background: var(--teal-soft);
}

/* Info / tools */
.info-grid {
    display: grid;
    gap: 16px;
}

.info-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    background: #fbfcfd;
}

.info-card h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    padding: 0;
    border: 0;
}

.info-list {
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.info-list div:last-child {
    border-bottom: none;
}

.info-list dt {
    color: var(--muted);
    font-weight: 600;
}

.info-list dd {
    margin: 0;
}

.account-table td {
    vertical-align: middle;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-actions a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
}

.link-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy);
    background: #fff;
    font-weight: 600;
}

.link-list a:hover {
    text-decoration: none;
    border-color: var(--teal);
    background: var(--teal-soft);
}

.download-card {
    text-align: center;
    padding: 12px 8px 8px;
}

.download-card .button {
    min-width: 220px;
}

.installer-tracks {
    display: grid;
    gap: 12px;
    margin: 12px 0 4px;
    text-align: left;
}

.installer-track {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.installer-track h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--navy);
}

.installer-track p {
    margin: 4px 0;
}

.installer-missing {
    color: var(--muted);
}

.note {
    font-size: 13px;
    color: var(--muted);
}

.table-scroll {
    overflow-x: auto;
}

.callout {
    background: var(--warning-bg);
    color: var(--warning);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
}

.howto-section {
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.howto-section:last-of-type {
    border-bottom: none;
}

.legal-block {
    font-size: 14px;
}

.legal-block strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
}

/* Footer */
.footer_conts {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 36px 20px 28px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.footer_conts ul {
    list-style-type: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    text-align: center;
}

.footer_conts li {
    display: inline;
    margin-right: 0;
    white-space: nowrap;
}

.footer_conts a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.footer_conts a:hover {
    color: #fff;
}

.footer-copy {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-unfixed {
    position: static;
}

main {
    padding: 0;
}

section {
    margin-bottom: 0;
}

@media screen and (min-width: 961px) {
    .accordion,
    .accordion.active {
        display: none;
    }
}

@media screen and (max-width: 960px) {
    .pc-link {
        display: none;
    }

    .accordion-toggle {
        display: inline-flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 8px 0 32px;
    }

    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .info-list div,
    .contact_table,
    .contact_table tbody,
    .contact_table tr,
    .contact_table td {
        display: block;
        width: 100%;
    }

    .contact_table td:first-child {
        padding-top: 4px;
        padding-bottom: 0;
    }
}

@media screen and (max-width: 640px) {
    .page-body {
        padding: 18px 12px 40px;
    }

    .container,
    .login-container {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .brand-tagline {
        display: none;
    }

    .hero-copy h1 {
        font-size: 28px;
    }

    .container table,
    #paymentTable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    ul.notice-list li {
        padding: 14px;
    }

    form:has(#year) select {
        width: 100%;
    }
}

.container.wide {
    max-width: 1040px;
}

.admin-menu-bar {
    border-top: 1px solid var(--line);
    background: #f7f5ef;
}

.admin-menu {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

.admin-menu-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-right: 4px;
}

.header .admin-menu a {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.header .admin-menu a:hover {
    background: var(--teal-soft);
    color: var(--teal);
}

.notice-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.notice-badge.is-important {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice-badge.is-release {
    background: var(--teal-soft);
    color: var(--teal);
}

.notice-badge.is-info {
    background: #eef2ff;
    color: #3538cd;
}

.notice-badge.is-pinned {
    background: var(--warning-bg);
    color: var(--warning);
}

ul.notice-list li.is-important {
    border-color: #fecdca;
    background: #fffafa;
}

ul.notice-list li.is-pinned {
    border-color: #fedf89;
}

ul.notice-list li strong {
    color: var(--ink);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-actions form,
.inline-form {
    margin: 0;
}

.table-actions .button,
.inline-form button,
.inline-form input[type="submit"],
.button-row .button,
.button-row button {
    width: auto;
    min-height: 36px;
    margin-top: 0;
    padding: 6px 12px;
    font-size: 13px;
}

.button.danger,
button.danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.button.danger:hover,
button.danger:hover {
    background: #912018;
    border-color: #912018;
    color: #fff;
}

ul.release-files {
    margin: 0;
    padding-left: 1.1em;
}

.release-os-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.release-os-nav a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.release-os-nav a:hover {
    background: var(--teal-soft);
    color: var(--teal);
    text-decoration: none;
}

.release-os {
    margin: 8px 0 28px;
}

.release-os h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.container table tr.is-old {
    background-color: #fffaf3;
}

.admin-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.admin-search .input {
    margin-bottom: 0;
}

.admin-search-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-search-actions button,
.admin-search-actions .button {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 6px 14px;
}

.impersonation-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: #b42318;
    color: #fff;
    padding: 10px 20px;
}

.impersonation-banner p {
    margin: 0;
    font-weight: 700;
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-banner button {
    background: #fff;
    color: #b42318;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    padding: 6px 14px;
    width: auto;
    min-height: 0;
    margin: 0;
    cursor: pointer;
}

.inline-form label {
    font-size: 12px;
    margin-right: 8px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: " ▾";
    font-size: 10px;
}

.nav-dropdown[open] summary {
    background: var(--teal-soft);
    color: var(--teal);
}

.pc-link .nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    min-width: 200px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pc-link .nav-dropdown-menu a,
.accordion .nav-dropdown-menu a {
    display: block;
}

.accordion .nav-dropdown {
    margin: 4px 0;
}

.accordion .nav-dropdown summary {
    padding: 12px 14px;
}

.accordion .nav-dropdown-menu {
    padding: 0 0 8px 12px;
}

.callout.is-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.container table th a {
    color: #fff;
    text-decoration: underline;
}

.pager {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pager .button {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 6px 14px;
}
