:root {
    --ds-page: #ffffff;
    --ds-raised: #f4efec;
    --ds-ink: #251f21;
    --ds-ink-2: #585254;
    --ds-hairline: #eae9ea;
    --ds-teal: #73a89a;
    --ds-red: #ed313e;
    --font-body: system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
    background: var(--ds-raised);
    color: var(--ds-ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 24px;
    -webkit-text-size-adjust: 100%;
}

.app {
    max-width: 640px;
    margin: 0 auto;
    background: var(--ds-page);
    min-height: 100vh;
    padding: 24px 20px 40px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.app-head { margin-bottom: 4px; }
.app-logo { display: block; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.app-title { font-size: 30px; line-height: 38px; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.app-fact { color: var(--ds-ink-2); margin: 6px 0 0; font-size: 14px; }
.app-intro { margin: 14px 0 0; font-size: 15px; line-height: 26px; }

.app-nav { display: flex; gap: 16px; border-bottom: 1px solid var(--ds-hairline); margin: 18px 0 0; overflow-x: auto; }
.app-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 2px;
    color: var(--ds-ink-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.app-nav a[aria-current='page'] { color: var(--ds-ink); border-bottom-color: var(--ds-ink); }

.app-banner { background: var(--ds-raised); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 21px; color: var(--ds-ink-2); margin: 14px 0 0; }
.app-flash { background: #eef4f2; border: 1px solid #cfe0da; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 14px 0 0; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.app-flash button { border: 0; background: none; color: var(--ds-teal); font: inherit; font-weight: 600; cursor: pointer; padding: 4px; }

.app-view { padding-top: 6px; }
.app-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--ds-hairline); color: var(--ds-ink-2); font-size: 13px; line-height: 21px; }
.app-foot p { margin: 0; }

.sk-sec-h { font-size: 19px; line-height: 27px; font-weight: 600; margin: 26px 0 8px; }
.sk-sub { color: var(--ds-ink-2); font-size: 13px; margin: 0 0 6px; }

.sk-card { display: block; border: 1px solid var(--ds-hairline); border-radius: 16px; padding: 14px; margin: 0 0 12px; color: inherit; text-decoration: none; background: #fff; }
.sk-card:hover { border-color: #d6d2d3; }
.sk-card:active { background: #fbfaf9; }
.sk-row { display: flex; gap: 12px; align-items: center; }
.sk-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-avatar { flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ds-ink); }
.sk-name { font-weight: 600; font-size: 16px; }
.sk-meta { color: var(--ds-ink-2); font-size: 13px; line-height: 20px; }
.sk-about { display: block; margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--ds-ink); }
.sk-open { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ds-teal); }
.sk-tag { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--ds-ink-2); border: 1px solid var(--ds-hairline); border-radius: 999px; padding: 2px 8px; }

.sk-head { display: flex; gap: 14px; align-items: center; margin: 18px 0 6px; }
.sk-title { font-size: 22px; line-height: 30px; margin: 0; font-weight: 600; }
.sk-lead { font-size: 15px; line-height: 24px; margin: 4px 0 0; }
.sk-sec { margin: 22px 0 0; }
.sk-sech { font-size: 15px; line-height: 22px; font-weight: 600; margin: 0 0 4px; color: var(--ds-ink); }
.sk-kv { margin: 0; }
.sk-kvrow { display: flex; gap: 14px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--ds-hairline); font-size: 14px; line-height: 22px; }
.sk-kvrow:last-child { border-bottom: 0; }
.sk-kvrow dt { color: var(--ds-ink-2); flex: 0 0 auto; margin: 0; }
.sk-kvrow dd { margin: 0; font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.sk-p { font-size: 14px; line-height: 22px; margin: 8px 0 0; }
.sk-note { font-size: 13px; color: var(--ds-ink-2); line-height: 20px; margin: 10px 0; }
.sk-empty { font-size: 14px; color: var(--ds-ink-2); line-height: 22px; }
.sk-ok { display: block; background: #eef4f2; border: 1px solid #cfe0da; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 22px; margin: 12px 0; }
.sk-error { color: var(--ds-red); font-size: 14px; line-height: 22px; margin: 8px 0; }
.sk-callout { background: var(--ds-raised); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }
.sk-callout b { display: block; font-size: 13px; margin-bottom: 4px; }

.sk-field { display: block; margin: 14px 0 0; }
.sk-label { display: block; font-size: 13px; color: var(--ds-ink-2); margin-bottom: 6px; }
.sk-input { width: 100%; border: 1px solid var(--ds-hairline); border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ds-ink); background: #fff; }
.sk-input:focus { outline: 2px solid var(--ds-teal); outline-offset: 1px; }
.sk-area { min-height: 76px; resize: vertical; }
.sk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .sk-two { grid-template-columns: 1fr; } }

.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-chip { border: 1px solid var(--ds-hairline); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; color: var(--ds-ink); min-height: 36px; cursor: pointer; }
.sk-chip[aria-pressed='true'] { border-color: var(--ds-teal); background: rgba(115, 168, 154, 0.14); font-weight: 600; }

.sk-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; line-height: 22px; }
.sk-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

.sk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.btn { border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px; }
.btn-primary { background: #4a3427; color: #fff; }
.btn-secondary { background: #fff; color: var(--ds-ink); border: 1px solid var(--ds-hairline); }
.btn-ghost { background: none; color: var(--ds-ink-2); }
.btn[disabled] { opacity: 0.5; cursor: default; }

.sk-progress { height: 4px; border-radius: 2px; background: var(--ds-hairline); overflow: hidden; margin: 4px 0 8px; }
.sk-progress span { display: block; height: 100%; background: var(--ds-teal); }

.sk-suggest { border-top: 1px solid var(--ds-hairline); padding-top: 12px; margin-top: 12px; }
.sk-match { border: 1px solid var(--ds-hairline); border-radius: 16px; padding: 14px; margin: 0 0 12px; }
.sk-matchline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.sk-matchline a { color: inherit; text-decoration: none; }
.sk-x { color: var(--ds-ink-2); font-weight: 400; }

@media (min-width: 768px) {
    .app { border-radius: 24px; margin: 24px auto; min-height: auto; box-shadow: 0 10px 40px rgba(37, 31, 33, 0.08); }
    .sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .sk-grid .sk-card { margin: 0; }
    .sk-input, .sk-two { max-width: 520px; }
}

.app-acct { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--ds-ink-2); }
.app-signout { border: 1px solid var(--ds-hairline); background: var(--ds-raised); color: var(--ds-ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.sk-login { max-width: 420px; }
.sk-login .btn { width: 100%; }
.sk-input[type="password"], .sk-input[type="email"] { direction: ltr; text-align: left; }

.sk-logrow{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.07);font-size:14px}
.sk-logname{font-weight:600}
