@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #17201d;
  --muted: #69736f;
  --paper: #f7f5ef;
  --card: #fffefa;
  --line: #deddd5;
  --green: #1d5948;
  --green-soft: #dcebe4;
  --coral: #e96f51;
  --coral-soft: #fbe3db;
  --shadow: 0 18px 50px rgba(23, 32, 29, .08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 Manrope, sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select { font: inherit; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(247,245,239,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 50%; font-family: 'Playfair Display', serif; }
.profile { display: flex; align-items: center; gap: 12px; }
.profile-name { font-weight: 600; }.role { color: var(--muted); font-size: 13px; }
.page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 72px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--line); }
h1, h2 { font-family: 'Playfair Display', serif; margin: 0; line-height: 1.05; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6vw, 70px); } h2 { font-size: 34px; } h3 { margin: 16px 0 4px; font-size: 20px; }
.eyebrow { color: var(--coral); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 580px; }
.hero { padding: 44px; min-height: 270px; border-radius: 28px; color: white; background: var(--green); display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -80px; top: -100px; box-shadow: 0 0 0 45px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.025); }
.hero .eyebrow { color: #a9d1c1; }.hero .lead { color: #d2e3dc; }.hero > * { position: relative; z-index: 1; }
.hero-stat { min-width: 155px; border-left: 1px solid rgba(255,255,255,.3); padding-left: 24px; display: flex; flex-direction: column; }
.hero-stat strong { font: 600 54px/1 'Playfair Display', serif; }.hero-stat span { color: #d2e3dc; font-size: 13px; }
.stats-row { display: flex; gap: 28px; }.section { margin-top: 58px; }.section-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card { padding: 24px; min-height: 205px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lesson-card time { display: inline-block; color: var(--coral); font-weight: 700; font-size: 13px; }.lesson-card p { color: var(--muted); margin: 0 0 24px; }
.teacher-accent { border-top: 4px solid var(--coral); }.two-column { display: grid; grid-template-columns: 1.3fr .7fr; gap: 42px; }.teacher-columns { grid-template-columns: .7fr 1.3fr; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; } tbody tr:last-child td { border: 0; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }.status.scheduled { background: #e7eef7; color: #345572; }.status.completed { background: var(--green-soft); color: var(--green); }.status.cancelled { background: var(--coral-soft); color: #9d442e; }
.status.pending-payment { background: #fff0c9; color: #7a5710; }
.status-button { border: 0; cursor: pointer; font-family: inherit; }
.upload-card, .login-card { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-stack, .upload-card { display: flex; flex-direction: column; gap: 18px; } label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); background: white; padding: 12px 14px; border-radius: 10px; color: var(--ink); outline: none; } input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,89,72,.1); }
.dropzone { padding: 28px; border: 1px dashed #aeb5b1; border-radius: 14px; text-align: center; }.dropzone span { color: var(--muted); font-weight: 400; }.dropzone input { border: 0; padding: 0; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 11px 17px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }.button.primary { background: var(--green); color: white; }.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }.button.small { padding: 7px 11px; font-size: 12px; }.button:disabled { opacity: .45; cursor: not-allowed; }
.file-list, .student-list { display: flex; flex-direction: column; gap: 10px; }.file-row, .student-row { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }.file-icon, .avatar { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--coral-soft); color: var(--coral); font-weight: 700; font-size: 11px; }.avatar { border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 16px; }.file-meta, .student-row > div:last-child { min-width: 0; flex: 1; display: flex; flex-direction: column; }.file-meta strong { overflow: hidden; text-overflow: ellipsis; }.file-meta span, .student-row span { color: var(--muted); font-size: 12px; }.file-row.compact { flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; }.inline-form input { min-width: 0; padding: 8px 10px; }.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: 14px; }.flash { padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }.flash.error { background: var(--coral-soft); color: #913a25; }
.notice-panel, .credential-card { margin-top: 28px; padding: 28px; border: 1px solid #ead39d; border-radius: 20px; background: #fff8e6; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.notice-panel h2, .credential-card h2 { font-size: 29px; }.notice-panel p, .credential-card p { color: var(--muted); margin: 10px 0 0; }.payment-request { background: var(--coral-soft); border-color: #efb4a4; }
.payment-cards { display: grid; gap: 10px; }.payment-card { padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid rgba(23,32,29,.11); border-radius: 12px; }.payment-card strong { flex: 1; }.payment-card > span { color: var(--muted); font-size: 12px; }
.check-action { flex-direction: row; align-items: center; cursor: pointer; }.check-action input { width: 18px; height: 18px; accent-color: var(--green); }.check-action span { color: var(--green); }
.credential-card { background: var(--green-soft); border-color: #abcdbf; }.credential-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.credential-values input { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: white; }
.notification-list { display: grid; gap: 9px; }.notification-row { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }.notification-row.unread { border-left: 4px solid var(--coral); }.notification-row > div { flex: 1; display: flex; flex-direction: column; }.notification-row span { color: var(--muted); font-size: 12px; }.compact-section { margin-top: 34px; }
.label-note { color: var(--muted); font-weight: 400; }.form-help { color: var(--muted); font-size: 12px; margin: -4px 0 0; }.admin-form { height: 100%; }.payment-inline { display: inline; }
.login-page { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 70px; align-items: center; }.login-card h1 { font-size: 52px; }.login-art { min-height: 570px; background: var(--green); border-radius: 32px; position: relative; overflow: hidden; }.orb { position: absolute; border-radius: 50%; }.orb.one { width: 340px; height: 340px; background: var(--coral); right: -40px; top: -70px; }.orb.two { width: 220px; height: 220px; border: 2px solid rgba(255,255,255,.5); left: 40px; bottom: 30px; box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03); }.quote { color: white; position: absolute; left: 60px; top: 190px; font: 700 clamp(45px, 6vw, 78px)/.95 'Playfair Display', serif; }.quote span { color: #aad0c2; }
@media (max-width: 900px) { .schedule-grid { grid-template-columns: 1fr 1fr; }.two-column, .login-page, .notice-panel, .credential-card { grid-template-columns: 1fr; }.login-art { display: none; }.profile-name, .role { display: none; }.hero { align-items: flex-start; gap: 32px; flex-direction: column; }.stats-row { width: 100%; flex-wrap: wrap; }.teacher-columns { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page { width: min(100% - 28px, 1240px); padding-top: 28px; }.topbar { padding: 0 14px; }.schedule-grid { grid-template-columns: 1fr; }.hero { padding: 28px; border-radius: 20px; }.hero h1 { font-size: 42px; }.stats-row { flex-direction: column; }.section { margin-top: 40px; }.file-row, .payment-card, .notification-row { align-items: flex-start; flex-wrap: wrap; }.file-meta { flex-basis: calc(100% - 60px); }.credential-values { grid-template-columns: 1fr; }.student-row { flex-wrap: wrap; } }
