@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --ink: #15283a;
  --muted: #617080;
  --line: #e6eaed;
  --paper: #fcfcfa;
  --surface: #ffffff;
  --nav: #102336;
  --nav-2: #183348;
  --mint: #d9eadf;
  --mint-deep: #0d6652;
  --coral: #f2b2a3;
  --sun: #ead9a7;
  --blue: #a8c6d4;
  --lavender: #d8cadf;
  --danger: #c84c40;
  --shadow: 0 20px 55px rgba(20, 40, 58, .10);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(430px, 1.08fr); }
.login-brand { background: var(--nav); color: #fff; padding: clamp(28px, 5vw, 78px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.login-brand::before { content: ""; width: 420px; height: 420px; background: var(--mint); opacity: .12; position: absolute; border-radius: 45% 55% 37% 63%; right: -160px; top: 13%; transform: rotate(35deg); }
.login-brand::after { content: ""; width: 280px; height: 280px; background: var(--coral); opacity: .15; position: absolute; border-radius: 50%; left: -120px; bottom: -80px; }
.brand, .login-copy, .brand-footer { position: relative; z-index: 1; }
.brand { font-weight: 700; letter-spacing: -.04em; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.mark { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; transform: rotate(-6deg); }
.mark i { display: block; height: 9px; border-radius: 2px; background: var(--mint); }
.mark i:nth-child(2) { background: var(--coral); }
.mark i:nth-child(3) { background: var(--sun); }
.mark i:nth-child(4) { background: var(--blue); }
.login-copy h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(42px, 5vw, 68px); max-width: 580px; line-height: .98; margin: 0 0 24px; letter-spacing: -.055em; }
.login-copy p { max-width: 490px; color: #bdd0dc; line-height: 1.6; font-size: 17px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.feature-pills span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 13px; }
.brand-footer { color: #9cb0be; font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 32px; background: #fff; }
.login-card { width: min(440px, 100%); }
.eyebrow { color: var(--mint-deep); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 11px; }
h2 { letter-spacing: -.04em; margin: 9px 0 7px; font-size: 32px; }
.intro { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }
.auth-form { display: grid; gap: 13px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
input, textarea { width: 100%; border: 1px solid #cfd7dc; color: var(--ink); border-radius: 10px; outline: none; padding: 13px 14px; background: #fff; }
input:focus, textarea:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(8,117,93,.12); }
.primary, .google, .clock-action, .nav-btn, .icon-btn { border: 0; border-radius: 10px; font-weight: 700; }
.primary { padding: 14px; color: #fff; background: var(--nav); margin-top: 4px; }
.primary:hover { background: var(--nav-2); }
.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: #8a969f; font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.google { padding: 13px; background: #fff; border: 1px solid #d7dfe3; color: var(--ink); display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; }
.g { font-weight: 700; color: #4285f4; font-size: 18px; }
.clock-shortcut { margin-top: 28px; background: #f0faf5; border: 1px solid #d3eee1; border-radius: 14px; padding: 17px; }
.clock-shortcut-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clock-shortcut h3 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.clock-shortcut p { color: var(--muted); font-size: 13px; margin: 5px 0 14px; }
.id-row { display: flex; gap: 8px; }
.id-row input { background: #fff; padding: 11px 12px; font-family: monospace; letter-spacing: .1em; }
.id-row button { min-width: 108px; background: var(--mint-deep); color: white; border: 0; border-radius: 9px; font-weight: 700; }
.legal { color: #8a969f; font-size: 12px; line-height: 1.45; margin-top: 20px; }

/* Application */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; background: #f5f7f6; }
.sidebar { background: var(--nav); color: #dce6ea; padding: 23px 14px; display: flex; flex-direction: column; gap: 28px; }
.sidebar .brand { margin: 0 10px; color: #fff; }
.workspace-switch { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); color: #fff; padding: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin: 0 2px; }
.workspace-switch .avatar { width: 24px; height: 24px; font-size: 10px; }
.nav-group { display: grid; gap: 4px; }
.nav-label { color: #8da2b0; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .13em; padding: 0 12px 8px; }
.nav-btn { background: transparent; color: #c6d3da; text-align: left; padding: 10px 12px; display: flex; align-items: center; gap: 11px; font-weight: 500; }
.nav-btn:hover, .nav-btn.active { background: rgba(255,255,255,.10); color: #fff; }
.nav-btn .nav-icon { width: 18px; text-align: center; color: var(--mint); font-size: 16px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 11px; padding: 0 8px; }
.help-link { font-size: 13px; color: #b6c7d1; border: 0; background: transparent; text-align: left; padding: 5px 0; }
.profile { border-top: 1px solid rgba(255,255,255,.13); padding-top: 16px; display: flex; gap: 9px; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; color: #562a28; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.profile strong, .profile small { display: block; }
.profile strong { color: #fff; font-size: 12px; }.profile small { color: #9cb0be; font-size: 11px; margin-top: 2px; }
.app-main { min-width: 0; }
.topbar { height: 76px; padding: 0 clamp(18px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.crumb { color: var(--muted); font-size: 14px; }.crumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 38px; height: 38px; background: transparent; color: var(--ink); border: 1px solid var(--line); position: relative; }
.notify-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); top: 8px; right: 9px; border: 1px solid #fff; }
.top-avatar { display: none; }
.content { padding: clamp(22px, 4vw, 46px); max-width: 1480px; }
.content-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }.content-heading h1 { margin: 0; font-family: Fraunces, Georgia, serif; letter-spacing: -.045em; font-size: clamp(30px, 4vw, 42px); }.content-heading p { margin: 6px 0 0; color: var(--muted); }
.date-chip { padding: 9px 12px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 13px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(300px, 1.45fr) minmax(250px, .9fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: 0 4px 17px rgba(19,36,52,.025); }
.panel h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }.link-btn { color: var(--mint-deep); font-weight: 700; background: transparent; border: 0; padding: 0; font-size: 12px; }
.time-card { background: #e9f9f1; border-color: #ccebdc; }.live-line { color: var(--mint-deep); font-weight: 700; font-size: 12px; display: flex; gap: 7px; align-items: center; }.live-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--mint-deep); }.clock-time { font-family: Fraunces, Georgia, serif; font-size: 38px; margin: 15px 0 4px; letter-spacing: -.04em; }.time-status { margin: 0 0 17px; color: var(--muted); font-size: 13px; }.clock-action { color: white; background: var(--mint-deep); padding: 12px; width: 100%; }.clock-action.out { background: var(--danger); }.time-detail { display: flex; justify-content: space-between; font-size: 12px; margin-top: 15px; color: var(--muted); }.time-detail strong { color: var(--ink); }
.shift-list { display: grid; gap: 13px; }.shift { display: grid; grid-template-columns: 7px 1fr auto; gap: 10px; align-items: center; }.shift i { height: 33px; border-radius: 6px; background: var(--blue); }.shift:nth-child(2) i { background: var(--coral); }.shift:nth-child(3) i { background: var(--lavender); }.shift strong, .shift span { display: block; }.shift strong { font-size: 13px; }.shift span { color: var(--muted); font-size: 11px; margin-top: 3px; }.shift time { font-size: 12px; font-weight: 700; }
.feed { padding: 4px 0 0; }.feed-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f1; }.feed-item:last-child { border-bottom: 0; }.feed-item .avatar { width: 30px; height: 30px; font-size: 10px; }.feed-item b { font-size: 13px; }.feed-item p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }.feed-item small { color: #8b989f; font-size: 10px; }
.booking-list { display: grid; gap: 10px; }.booking { padding: 12px; border-radius: 10px; background: #f6f7f7; display: grid; grid-template-columns: 35px 1fr; gap: 10px; }.booking .when { background: var(--sun); border-radius: 7px; display: grid; place-items: center; align-content: center; font-size: 11px; font-weight: 700; line-height: 1.05; }.booking strong { display: block; font-size: 13px; }.booking span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.quick { text-align: left; padding: 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }.quick span { display: block; font-size: 18px; margin-bottom: 7px; }
.empty-screen { padding: 28px; text-align: center; background: #fff; border: 1px dashed #cbd5d9; border-radius: 15px; color: var(--muted); }.empty-screen h3 { color: var(--ink); margin-bottom: 8px; }.empty-screen p { margin: 0 auto 17px; max-width: 440px; line-height: 1.5; font-size: 14px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); gap: 14px; }.person { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.person-top { display: flex; gap: 10px; align-items: center; }.person h3 { margin: 0; font-size: 14px; }.person p { margin: 3px 0 13px; color: var(--muted); font-size: 12px; }.person-meta { color: var(--mint-deep); font-size: 11px; font-weight: 700; }
.chat-layout { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 15px; min-height: 470px; overflow: hidden; }.channel-list { padding: 16px; background: #f7f9f8; border-right: 1px solid var(--line); }.channel-list h3 { margin: 0 0 15px; font-size: 14px; }.channel { width: 100%; border: 0; background: transparent; text-align: left; padding: 9px; border-radius: 7px; color: var(--muted); font-size: 13px; }.channel.active { background: var(--mint); color: var(--ink); font-weight: 700; }.conversation { padding: 20px; display: flex; flex-direction: column; }.conversation-head { border-bottom: 1px solid var(--line); padding-bottom: 15px; }.conversation-head h3 { margin: 0; }.conversation-head span { color: var(--muted); font-size: 12px; }.messages { flex: 1; display: grid; align-content: start; gap: 16px; padding: 21px 0; }.message { display: grid; grid-template-columns: 32px 1fr; gap: 9px; }.message b { font-size: 13px; }.message time { color: #98a4aa; font-size: 11px; margin-left: 5px; }.message p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.composer { display: flex; gap: 8px; }.composer input { padding: 10px 12px; }.composer button { border: 0; padding: 0 16px; border-radius: 9px; background: var(--nav); color: white; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,32,45,.42); display: grid; place-items: center; padding: 20px; z-index: 5; }.modal { width: min(470px,100%); background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }.modal h2 { font-size: 25px; }.modal-actions { display: flex; gap: 9px; justify-content: end; margin-top: 18px; }.secondary { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px 14px; font-weight: 700; }.modal .primary { margin: 0; padding: 10px 14px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--nav); color: #fff; padding: 13px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; z-index: 8; animation: in .25s ease-out; }.toast strong { color: var(--mint); } @keyframes in { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 1050px) { .dashboard-grid { grid-template-columns: 1fr 1fr; }.dashboard-grid > :nth-child(2) { grid-row: span 2; }.app-shell { grid-template-columns: 205px 1fr; } }
@media (max-width: 760px) { .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 330px; }.login-copy h1 { font-size: 44px; }.login-panel { padding: 34px 21px; }.app-shell { grid-template-columns: 1fr; }.sidebar { display: none; }.topbar { height: 64px; }.top-avatar { display: grid; }.content { padding: 22px 18px; }.dashboard-grid { grid-template-columns: 1fr; }.dashboard-grid > :nth-child(2) { grid-row: auto; }.date-chip { display: none; }.chat-layout { grid-template-columns: 1fr; }.channel-list { display: flex; gap: 5px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }.channel-list h3 { display: none; }.channel { white-space: nowrap; }.content-heading { align-items: start; }.content-heading p { font-size: 13px; } }

/* Kyodai application refinements */
.content { margin: 0 auto; }
.content-heading { margin-bottom: 30px; }
.content-heading h1 { font-size: clamp(34px, 4vw, 46px); }
.panel { border-color: #dde5e7; box-shadow: 0 10px 28px rgba(19,36,52,.04); }
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { color: #687684; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; text-align: left; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 15px 12px; border-bottom: 1px solid #edf0f1; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child, .table th:first-child { padding-left: 0; }
.table td:last-child, .table th:last-child { padding-right: 0; text-align: right; }
.action-stack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking-panel { margin-top: 20px; }
.booking-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.booking-page-card { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; padding: 20px; background: #fff; border: 1px solid #dfe7e8; border-radius: 15px; box-shadow: 0 7px 20px rgba(19,36,52,.035); }
.booking-page-icon { height: 38px; width: 38px; display: grid; place-items: center; background: var(--mint); color: var(--mint-deep); border-radius: 11px; font-weight: 700; font-size: 18px; }
.booking-page-card h3 { margin: 5px 0; letter-spacing: -.025em; }
.booking-page-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; }
.booking-page-url { margin-top: 12px; color: var(--mint-deep); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-page-actions { grid-column: 2; display: flex; gap: 16px; margin-top: 3px; }
.polished-chat { min-height: 540px; box-shadow: 0 10px 28px rgba(19,36,52,.045); }
.channel-list { padding: 18px 12px; }
.channel-list-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 10px; }
.channel-list-head h3 { margin: 0; }
.channel { display: flex; align-items: center; gap: 5px; margin: 3px 0; }
.channel.active { box-shadow: inset 3px 0 0 var(--mint-deep); }
.channel-status { color: var(--mint-deep); background: #e6f7ef; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.conversation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.messages { max-width: 760px; }
.message { padding-bottom: 2px; }
.message p { max-width: 630px; }
.client-booking-body { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: linear-gradient(135deg, #eef6f3 0%, #f8f7f3 52%, #eaf0f2 100%); }
.client-booking-wrap { width: min(540px, 100%); }
.client-card { background: #fff; border: 1px solid #dce7e3; border-radius: 20px; padding: clamp(24px, 6vw, 46px); box-shadow: 0 24px 70px rgba(19,36,52,.12); }
.client-card .brand { color: var(--nav); margin-bottom: 40px; }
.client-card h1 { font-family: Fraunces, Georgia, serif; letter-spacing: -.04em; font-size: 37px; margin: 9px 0 10px; }
.client-card > p { color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.client-meta { color: var(--mint-deep); background: #e9f8f1; width: fit-content; padding: 8px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 23px; }
.client-card .auth-form { gap: 15px; }
@media (max-width: 760px) { .action-stack { width: 100%; }.action-stack button { flex: 1; }.booking-page-card { grid-template-columns: 38px 1fr; }.booking-page-actions { grid-column: 1 / -1; }.polished-chat { min-height: 480px; } }