/* LUMIO company portal — theme styles are intentionally reused for logo, buttons and tokens. */
.cp-body,
.cp-login-body {
    --cp-coral: var(--color-main, #ff725e);
    --cp-coral-dark: var(--color-main-dark, #e85f4e);
    --cp-cream: var(--color-base, #fff8ef);
    --cp-ink: var(--color-text, #2f2f2f);
    --cp-muted: var(--color-muted, #666);
    --cp-line: var(--color-line, #eadfd3);
    --cp-mint: var(--color-accent-mint, #7ad7d1);
    margin: 0;
    color: var(--cp-ink);
    background: var(--cp-cream);
    font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.75;
}

.cp-body *, .cp-login-body * { box-sizing: border-box; }
.cp-body a:not(.button), .cp-login-body a:not(.button) { color: inherit; }
.cp-shell { min-height: 0; display: block; }

.cp-member-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin: -18px 4px 22px;
}
.cp-member-nav > a,
.cp-member-nav > .is-current {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--cp-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}
.cp-member-nav > a:hover { color: var(--cp-coral-dark); background: #fff; }
.cp-member-nav > .is-current { color: var(--cp-coral-dark); background: #fff1eb; }

/* Header */
.cp-portal-header {
    position: sticky; top: 0; z-index: 20;
    border-bottom: 1px solid rgba(234, 223, 211, .8);
    background: rgba(255, 248, 239, .92);
    backdrop-filter: blur(14px);
}
.cp-portal-header__inner {
    width: min(1120px, calc(100% - 48px)); height: 84px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cp-brand { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.cp-brand .logo__main { font-size: 25px; letter-spacing: .08em; }
.cp-brand__sub { padding-left: 12px; border-left: 1px solid var(--cp-line); color: var(--cp-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cp-nav { display: flex; align-items: center; gap: 8px; }
.cp-nav a { position: relative; padding: 10px 15px; border-radius: 999px; text-decoration: none; color: var(--cp-muted); font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.cp-nav a:hover, .cp-nav a.is-active { color: var(--cp-coral-dark); background: #fff; }
.cp-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 2px; border-radius: 2px; background: var(--cp-coral); transform: translateX(-50%); }
.cp-nav .cp-logout { margin-left: 8px; color: #8a8179; border: 1px solid var(--cp-line); }
.cp-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 99px; color: #fff; background: var(--cp-coral); font: 700 10px/1 "Poppins", sans-serif; vertical-align: middle; }

/* Layout */
.cp-main { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 88px; flex: 1; }
.cp-main--detail { width: min(840px, calc(100% - 48px)); }
.cp-eyebrow, .cp-section-kicker, .cp-login-card__kicker { margin: 0 0 8px; color: var(--cp-coral-dark); font: 700 12px/1.4 "Poppins", sans-serif; letter-spacing: .18em; }

/* Dashboard hero */
.cp-welcome-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 360px; gap: 40px; min-height: 310px; padding: 52px; border-radius: 34px; color: #fff; background: linear-gradient(135deg, var(--cp-coral) 0%, #ff8b70 65%, #ff9a77 100%); box-shadow: 0 20px 50px rgba(232, 95, 78, .18); }
.cp-welcome-card::before { content: ""; position: absolute; right: -80px; top: -140px; width: 350px; height: 350px; border: 64px solid rgba(255,255,255,.1); border-radius: 50%; }
.cp-welcome-card::after { content: ""; position: absolute; left: 42%; bottom: -95px; width: 190px; height: 190px; border-radius: 50%; background: rgba(122, 215, 209, .28); }
.cp-welcome-card__content, .cp-welcome-card__stats { position: relative; z-index: 1; }
.cp-welcome-card .cp-eyebrow { color: rgba(255,255,255,.78); }
.cp-welcome-card h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.35; letter-spacing: .03em; }
.cp-welcome-card h1 span { margin-left: .25em; font-size: .5em; font-weight: 500; }
.cp-welcome-card__lead { max-width: 560px; margin: 14px 0 26px; color: rgba(255,255,255,.9); font-size: 14px; }
.cp-contract-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-contract-meta > span { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.cp-contract-meta small { color: rgba(255,255,255,.72); font-size: 10px; }
.cp-welcome-card__stats { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-stat-card { min-width: 0; padding: 24px 20px; border-radius: 22px; text-decoration: none; color: var(--cp-ink) !important; background: #fff; box-shadow: 0 12px 30px rgba(121, 65, 55, .14); transition: transform .2s, box-shadow .2s; }
.cp-stat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(121, 65, 55, .2); }
.cp-stat-card--mint { background: #e7faf7; }
.cp-stat-card__label { display: block; color: var(--cp-muted); font-size: 11px; font-weight: 700; }
.cp-stat-card strong { display: block; margin: 5px 0 7px; color: var(--cp-coral-dark); font: 700 38px/1.2 "Poppins", sans-serif; }
.cp-stat-card--mint strong { color: #319d97; }
.cp-stat-card strong small { margin-left: 3px; font-family: "Noto Sans JP", sans-serif; font-size: 12px; }
.cp-stat-card__link { color: var(--cp-muted); font-size: 10px; font-weight: 700; }

/* Panels and page headings */
.cp-panel { margin-top: 28px; padding: 34px 38px; border: 1px solid rgba(234,223,211,.9); border-radius: 26px; background: #fff; box-shadow: 0 12px 35px rgba(83, 61, 42, .06); }
.cp-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.cp-panel__head h2 { margin: 0; font-size: 24px; line-height: 1.4; }
.cp-panel__head p:not(.cp-section-kicker) { margin: 6px 0 0; color: var(--cp-muted); font-size: 12px; }
.cp-panel__action.button { flex-shrink: 0; min-width: auto; padding: 10px 18px; font-size: 12px; }
.cp-contact-panel .cp-panel__head { margin-bottom: 0; }
.cp-listing-total { flex-shrink: 0; padding: 8px 15px; border-radius: 99px; color: var(--cp-coral-dark); background: #fff1eb; font-size: 12px; font-weight: 700; }
.cp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding: 0 8px; }
.cp-page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.3; }
.cp-page-head p:not(.cp-section-kicker) { margin: 8px 0 0; color: var(--cp-muted); font-size: 14px; }
.cp-page-head__count { display: flex; align-items: baseline; gap: 6px; min-width: 118px; padding: 14px 18px; border-radius: 18px; background: #fff1eb; color: var(--cp-coral-dark); }
.cp-page-head__count strong { font: 700 30px/1 "Poppins", sans-serif; }
.cp-page-head__count span { font-size: 11px; font-weight: 700; }
.cp-panel--list { margin-top: 0; padding-top: 12px; padding-bottom: 12px; }

/* Notifications */
.cp-notify-list { margin: 0; padding: 0; list-style: none; }
.cp-notify-item + .cp-notify-item { border-top: 1px solid #f0e9e1; }
.cp-notify-item a { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 20px 4px; text-decoration: none; transition: color .2s, transform .2s; }
.cp-notify-item a:hover { color: var(--cp-coral-dark); transform: translateX(3px); }
.cp-notify-state { display: inline-grid; place-items: center; height: 25px; border-radius: 99px; color: #8b8178; background: #f5f1ec; font-size: 10px; font-weight: 700; }
.cp-notify-item.is-unread .cp-notify-state { color: #fff; background: var(--cp-coral); }
.cp-notify-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cp-notify-item.is-unread .cp-notify-title { font-weight: 700; }
.cp-notify-date { color: #9b9189; font: 500 11px/1.4 "Poppins", sans-serif; }
.cp-row-arrow { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.cp-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 20px; text-align: center; color: var(--cp-muted); }
.cp-empty::before { content: ""; width: 54px; height: 40px; margin-bottom: 18px; border: 2px solid var(--cp-line); border-radius: 9px; background: linear-gradient(145deg, transparent 48%, var(--cp-line) 49%, var(--cp-line) 51%, transparent 52%); }
.cp-empty strong { color: var(--cp-ink); font-size: 15px; }
.cp-empty span { margin-top: 4px; font-size: 12px; }

/* Listings */
.cp-listing-list { border-top: 1px solid #f0e9e1; }
.cp-listing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 4px; border-bottom: 1px solid #f0e9e1; }
.cp-listing-row__main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 14px; min-width: 0; }
.cp-listing-row h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.cp-listing-row p { grid-column: 2; margin: 0; color: #9b9189; font: 500 10px/1.4 "Poppins", sans-serif; }
.cp-status { grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; color: #766d65; background: #f0ece7; font-size: 10px; font-weight: 700; }
.cp-status i { width: 6px; height: 6px; border-radius: 50%; background: #aaa097; }
.cp-status.is-public { color: #278d87; background: #e5f8f5; }
.cp-status.is-public i { background: #42bfb7; box-shadow: 0 0 0 3px rgba(66,191,183,.15); }
.cp-listing-link { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; color: var(--cp-coral-dark) !important; background: #fff1eb; text-decoration: none; font-size: 11px; font-weight: 700; }
.cp-listing-link:hover { background: var(--cp-coral); color: #fff !important; }
.cp-note { margin: 18px 0 0; color: #8b8178; font-size: 11px; }

/* Detail */
.cp-detail-back, .cp-back { margin: 0 0 18px; }
.cp-back { margin-top: 22px; padding-left: 8px; }
.cp-detail-back a, .cp-back a, .cp-site-back { color: var(--cp-muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.cp-detail-back a:hover, .cp-back a:hover, .cp-site-back:hover { color: var(--cp-coral-dark); }
.cp-notify-detail { overflow: hidden; border: 1px solid var(--cp-line); border-radius: 30px; background: #fff; box-shadow: 0 18px 50px rgba(83, 61, 42, .07); }
.cp-notify-detail__head { position: relative; padding: 44px 48px 34px; background: linear-gradient(145deg, #fff 20%, #fff5ef); }
.cp-notify-detail__head::after { content: ""; position: absolute; top: 0; left: 0; width: 7px; height: 100%; background: var(--cp-coral); }
.cp-notify-detail__head h1 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 34px); line-height: 1.5; }
.cp-notify-detail__head time { color: #9b9189; font: 500 11px/1.4 "Poppins", sans-serif; }
.cp-notify-detail__body { padding: 42px 48px 54px; color: #49423d; font-size: 15px; }
.cp-notify-detail__body > :first-child { margin-top: 0; }
.cp-notify-detail__body > :last-child { margin-bottom: 0; }
.cp-notify-detail__body a { color: var(--cp-coral-dark); }
.cp-not-found { margin-top: 0; padding: 48px; }
.cp-not-found h1 { margin: 0 0 8px; }
.cp-not-found > p:last-child { color: var(--cp-muted); }

/* Footer */
.cp-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--cp-line); color: #958a81; font: 500 10px/1.4 "Poppins", sans-serif; letter-spacing: .08em; }
.cp-footer p { margin: 0; }.cp-footer strong { color: var(--cp-ink); letter-spacing: .12em; }.cp-footer a { text-decoration: none; }

/* Login */
.cp-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .95fr) minmax(480px, 1.05fr); }
.cp-login-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 72px); color: #fff; background: linear-gradient(145deg, var(--cp-coral), #ff9275); }
.cp-login-brand { align-self: flex-start; color: #fff !important; }.cp-login-brand .logo__mark { background: #fff; }.cp-login-brand .logo__mark span { border-color: var(--cp-coral); }
.cp-login-intro__copy { position: relative; z-index: 1; max-width: 520px; margin: auto 0; padding: 80px 0; }
.cp-login-intro__copy .cp-eyebrow { color: rgba(255,255,255,.76); }
.cp-login-intro__copy h1 { margin: 0 0 22px; font-size: clamp(40px, 5vw, 66px); line-height: 1.3; letter-spacing: .04em; }
.cp-login-intro__copy > p:last-child { max-width: 430px; color: rgba(255,255,255,.86); font-size: 14px; }
.cp-login-decoration span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cp-login-decoration span:nth-child(1) { right: -100px; top: -80px; width: 330px; height: 330px; border: 55px solid rgba(255,255,255,.08); background: transparent; }
.cp-login-decoration span:nth-child(2) { right: 8%; bottom: -90px; width: 260px; height: 260px; background: rgba(122,215,209,.3); }
.cp-login-decoration span:nth-child(3) { right: 22%; bottom: 23%; width: 54px; height: 54px; background: #ffd86f; }
.cp-login-panel { display: grid; place-items: center; padding: 48px; background: var(--cp-cream); }
.cp-login-card { width: min(100%, 430px); padding: 46px; border: 1px solid var(--cp-line); border-radius: 30px; background: #fff; box-shadow: 0 22px 60px rgba(83,61,42,.1); }
.cp-login-card h2 { margin: 0; font-size: 30px; }.cp-login-sub { margin: 8px 0 28px; color: var(--cp-muted); font-size: 12px; }
.cp-field { margin: 0 0 18px; }.cp-field label { display: block; margin-bottom: 7px; color: #514942; font-size: 12px; font-weight: 700; }
.cp-field input[type="email"], .cp-field input[type="password"] { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--cp-line); border-radius: 12px; outline: none; background: #fffdfa; color: var(--cp-ink); font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.cp-field input:focus { border-color: var(--cp-coral); box-shadow: 0 0 0 4px rgba(255,114,94,.12); }
.cp-field-remember { margin-top: -2px; }.cp-field-remember label { display: inline-flex; align-items: center; gap: 8px; color: var(--cp-muted); font-weight: 500; cursor: pointer; }
.cp-field-remember input { accent-color: var(--cp-coral); }.cp-field-submit { margin: 26px 0 20px; }
.cp-login-btn.button { width: 100%; min-width: 0; border: 0; cursor: pointer; }
.cp-site-back { display: block; text-align: center; }
.cp-login-msg { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; font-size: 12px; }
.cp-login-msg.is-error { color: #ad4539; background: #fff0ec; }.cp-login-msg.is-info { color: #237b76; background: #e7f8f5; }

@media (max-width: 880px) {
    .cp-welcome-card { grid-template-columns: 1fr; padding: 40px; }
    .cp-welcome-card__stats { width: min(100%, 360px); }
    .cp-login-shell { grid-template-columns: minmax(320px, .8fr) 1fr; }
    .cp-login-intro { padding: 40px; }.cp-login-panel { padding: 32px; }.cp-login-card { padding: 36px; }
}

@media (max-width: 700px) {
    .cp-portal-header { position: static; }.cp-portal-header__inner { width: calc(100% - 32px); height: auto; padding: 18px 0 12px; flex-direction: column; gap: 14px; }
    .cp-brand .logo__main { font-size: 22px; }.cp-brand__sub { font-size: 10px; }.cp-nav { width: 100%; justify-content: center; gap: 3px; }.cp-nav a { padding: 8px 10px; font-size: 11px; }.cp-nav .cp-logout { margin-left: auto; }
    .cp-main, .cp-main--detail { width: calc(100% - 32px); padding: 32px 0 60px; }
    .cp-member-nav { justify-content: center; margin: -12px 0 18px; }
    .cp-welcome-card { min-height: auto; padding: 30px 24px; border-radius: 26px; }.cp-welcome-card h1 { font-size: 27px; }.cp-welcome-card__lead { font-size: 12px; }.cp-contract-meta { align-items: flex-start; flex-direction: column; }
    .cp-welcome-card__stats { width: 100%; }.cp-stat-card { padding: 18px 16px; }.cp-stat-card strong { font-size: 31px; }
    .cp-panel { padding: 26px 20px; border-radius: 22px; }.cp-panel__head { align-items: flex-start; }.cp-panel__head h2 { font-size: 21px; }.cp-panel__action.button { padding: 8px 12px; font-size: 10px; }
    .cp-notify-item a { grid-template-columns: 42px 1fr 10px; gap: 10px; padding: 17px 2px; }.cp-notify-date { grid-column: 2; }.cp-row-arrow { grid-column: 3; grid-row: 1 / 3; }.cp-notify-state { grid-row: 1 / 3; }
    .cp-listing-row { align-items: flex-start; flex-direction: column; gap: 12px; }.cp-listing-row__main { width: 100%; }.cp-listing-link { margin-left: auto; }
    .cp-page-head { align-items: flex-start; }.cp-page-head__count { min-width: auto; }.cp-page-head p:not(.cp-section-kicker) { font-size: 12px; }
    .cp-notify-detail__head { padding: 32px 26px 26px; }.cp-notify-detail__body { padding: 30px 26px 40px; font-size: 14px; }
    .cp-footer { width: calc(100% - 32px); flex-direction: column; align-items: flex-start; }
    .cp-login-shell { display: block; }.cp-login-intro { min-height: 300px; padding: 28px 24px; }.cp-login-intro__copy { padding: 50px 0 30px; }.cp-login-intro__copy h1 { font-size: 38px; }.cp-login-panel { padding: 32px 16px 48px; }.cp-login-card { margin-top: -56px; padding: 30px 24px; border-radius: 24px; position: relative; z-index: 2; }.cp-login-card h2 { font-size: 25px; }
}

@media (max-width: 430px) {
    .cp-brand__sub { display: none; }.cp-nav .cp-logout { margin-left: 0; }.cp-welcome-card__stats { grid-template-columns: 1fr 1fr; gap: 8px; }.cp-stat-card { padding: 16px 12px; }.cp-stat-card__label, .cp-stat-card__link { font-size: 9px; }
    .cp-panel__head { flex-direction: column; }.cp-panel__head .cp-panel__action { align-self: flex-start; }.cp-page-head { align-items: flex-start; flex-direction: column; }.cp-page-head__count { padding: 10px 14px; }.cp-listing-row__main { grid-template-columns: auto minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { .cp-body *, .cp-login-body * { scroll-behavior: auto !important; transition: none !important; } }
.cp-body a:focus-visible, .cp-login-body a:focus-visible, .cp-login-body button:focus-visible { outline: 3px solid rgba(255,114,94,.4); outline-offset: 3px; }
