:root {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: #292e2a;
  background: #f7f8f4;
  --accent: #d96136;
  --line: #e0e4db;
  --muted: #71786f;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1,h2,h3,p { margin-top: 0; }
h1 { font: 400 42px/1.18 var(--serif); letter-spacing: -1.6px; margin: 12px 0; }
h2 { font-size: 18px; letter-spacing: -.4px; }
h3 { font-size: 16px; }
p { line-height: 1.65; }
small { font-size: 12px; }
.shell { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: #eef1e8; border-right: 1px solid var(--line); padding: 34px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.5px; }
.brand small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: 0; margin-top: 5px; }
.brand-mark { background: #343f32; color: #fafbf5; font: italic 28px var(--serif); display: grid; place-items: center; width: 42px; height: 46px; border-radius: 10px; }
.nav-label { font-size: 10px; letter-spacing: 1.8px; color: #75806d; font-weight: 600; margin: 54px 12px 18px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 7px; font-size: 13px; margin-bottom: 6px; color: #596153; }
.nav-link span { font-size: 19px; min-width: 20px; }
.nav-link.selected { background: #dfe6d7; color: #30492c; font-weight: 600; }
.sidebar-note { font: italic 22px/1.5 var(--serif); letter-spacing: -.5px; color: #88937c; margin: auto 12px 32px; }
.account { display: flex; gap: 9px; align-items: center; border-top: 1px solid #dce2d3; padding-top: 22px; font-size: 11px; font-weight: 600; }
.account small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.account form { margin-left: auto; }
.avatar { background: #dce3d3; color: #506647; border-radius: 50%; height: 34px; width: 34px; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.signout { background: none; border: 0; color: var(--muted); font-size: 18px; }
.main { max-width: 1370px; width: 100%; padding: 54px 58px 70px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.page-header p { font-size: 14px; color: var(--muted); margin: 0; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 650; color: #687a58; }
.button { display: inline-flex; gap: 10px; justify-content: center; align-items: center; background: #fff; border: 1px solid #d8ded2; border-radius: 7px; padding: 11px 17px; font-size: 12px; white-space: nowrap; color: #47533f; line-height: 1.5; min-height: 40px; }
.button:hover { border-color: #9fae95; color: #2d4226; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #c45129; }
.button.quiet { color: var(--muted); background: none; }
.search-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 28px; box-shadow: 0 2px 3px #35412703; }
.search-box { display: flex; align-items: center; gap: 15px; }
.search-box>span { font-size: 26px; color: #7d8b73; }
.search-box>input { border: 0; padding: 8px 0; background: none; flex: 1; min-width: 0; font-size: 14px; }
.filters { border-top: 1px solid #eef0e9; margin-top: 18px; padding-top: 16px; display: flex; gap: 22px; align-items: center; font-size: 12px; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 10px; }
.filters input { background: #f6f8f2; border: 1px solid #e4e9de; border-radius: 5px; padding: 6px 9px; max-width: 140px; font-size: 11px; }
.results-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .2px; margin: 0 4px 16px; }
.results-heading>span:first-child { color: #45523d; font-weight: 600; }
.repo-list { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.repo-row { display: flex; align-items: flex-start; gap: 18px; padding: 27px 25px; border-bottom: 1px solid #edf0e7; }
.repo-row:last-child { border: 0; }
.repo-symbol { width: 43px; height: 43px; border-radius: 10px; background: #f1f3eb; color: #6b7b5c; display: grid; place-items: center; font: 25px var(--serif); flex-shrink: 0; }
.repo-content { min-width: 0; flex: 1; }
.repo-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.repo-title h2 { font-size: 14px; letter-spacing: -.2px; margin: 1px 0; }
.repo-title h2 a { overflow-wrap: anywhere; }
.visibility { border: 1px solid #e0e5da; padding: 2px 7px; border-radius: 20px; color: #68715e; font-size: 9px; }
.repo-content>p { font-size: 12px; color: #697460; line-height: 1.6; margin: 9px 0 13px; max-width: 600px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tag { border-radius: 4px; background: #edf2e6; color: #546b47; font-size: 10px; padding: 4px 8px; }
.language { font-size: 10px; color: #727c68; margin-left: 4px; display: flex; align-items: center; gap: 5px; }
.language i { width: 6px; height: 6px; border-radius: 50%; background: #e2bc58; }
.repo-status { text-align: right; display: flex; align-items: flex-end; flex-direction: column; gap: 10px; min-width: 150px; }
.status { font-size: 10px; color: #666f59; display: inline-block; padding: 4px 8px; border-radius: 20px; background: #f4f5ef; }
.status.changed { color: #aa623d; background: #fff0df; }
.repo-status small { font-size: 10px; color: #7f8973; }
.repo-status>a { font-size: 11px; color: #657852; }
.empty { padding: 70px 25px; text-align: center; }
.empty-icon { font-size: 42px; color: #96a887; }
.empty h2 { font: 400 28px var(--serif); margin: 20px 0 10px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 430px; margin: 0 auto 24px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; font-size: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 27px; margin-bottom: 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 22px; }
.detail-title { font-size: 32px; overflow-wrap: anywhere; }
.back { font-size: 12px; color: var(--muted); display: inline-block; margin-bottom: 22px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 11px; }
.stack { display: grid; gap: 18px; }
.stack label { display: grid; gap: 8px; font-size: 12px; color: #54604c; }
.stack input,.stack textarea,.stack select { width: 100%; border: 1px solid #dce2d5; background: #fcfdf9; padding: 11px 12px; border-radius: 6px; color: #3c4736; font-size: 12px; }
.stack textarea { resize: vertical; }
.stack small { font-size: 10px; color: #6d795e; }
.stack>.button { justify-self: start; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px 20px; font-size: 12px; margin: 25px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.text-link { display: block; font-size: 12px; color: #70875f; margin: 18px 0; }
.notice { border: 1px solid #edddc8; background: #fff8eb; border-radius: 6px; padding: 12px 15px; color: #846036; font-size: 12px; line-height: 1.65; margin-bottom: 18px; }
.history-entry { padding: 24px 0; border-top: 1px solid var(--line); }
.history-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-header small { color: var(--muted); }
.history-header h2 { margin-bottom: 0; }
.history-entry h3 { margin: 16px 0 9px; white-space: pre-wrap; }
.history-entry p { font-size: 12px; color: var(--muted); white-space: pre-wrap; }
.history-entry>a { font-size: 12px; color: #6d855a; }
.readme { font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 500px; overflow: auto; background: #f6f8f2; border-radius: 6px; padding: 18px; }
.panel summary { font-size: 12px; cursor: pointer; color: #657a57; }
.connection { display: flex; align-items: center; gap: 12px; margin: 25px 0; }
.connection strong { font-size: 12px; }
.connection p { margin: 4px 0 0; font-size: 11px; }
.dot { width: 7px; height: 7px; background: #91aa7b; border-radius: 50%; margin-left: auto; }
.import-count { font: 48px var(--serif); margin: 24px 0; color: #3d5133; }
.import-count small { display: block; font-family: "Segoe UI",sans-serif; font-size: 12px; color: var(--muted); margin-top: 6px; }
.inline-form { display: inline-block; margin-left: 12px; }
.login-main { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at top left,#e5eadb,#f8f8f2 65%); padding: 35px; }
.login-card { max-width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 54px; box-shadow: 0 22px 80px #4d603713; }
.brand-mark.large { width: 54px; height: 58px; font-size: 36px; margin-bottom: 32px; }
.login-card h1 { font-size: 52px; margin: 23px 0; }
.login-card h1 em { color: #657d53; }
.login-card>p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-button { width: 100%; justify-content: space-between; padding: 14px 20px; }
.login-footer { display: block; text-align: center; color: #6d7a5f; line-height: 1.8; margin-top: 26px; font-size: 11px; }
@media (min-width:1500px) { .main { padding-left: 80px; padding-right: 80px; } }
@media (max-width:1100px) {
  .shell { grid-template-columns: 218px minmax(0,1fr); }
  .sidebar { padding: 28px 16px; } .main { padding: 40px 28px; }
  .repo-row { gap: 12px; padding: 24px 18px; } .repo-status { min-width: 115px; }
  .repo-status .status { font-size: 9px; } .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width:740px) {
  .shell { display: block; } .sidebar { position: static; height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 16px; } .brand small,.nav-label,.sidebar-note { display: none; }
  .sidebar nav { display: flex; gap: 4px; margin-top: 18px; overflow: auto; }
  .nav-link { white-space: nowrap; font-size: 11px; padding: 9px 11px; margin: 0; }
  .nav-link span { font-size: 15px; min-width: 13px; } .account { margin-top: 15px; padding-top: 12px; }
  .main { padding: 30px 18px; } .page-header { align-items: flex-start; gap: 14px; }
  h1 { font-size: 32px; } .page-header>.button { padding: 9px 11px; font-size: 10px; }
  .page-header p { font-size: 12px; } .search-panel { padding: 15px; } .search-box { gap: 9px; }
  .search-box>input { font-size: 12px; } .search-box .button { padding: 9px 12px; }
  .filters { gap: 12px; flex-wrap: wrap; } .filters input { max-width: 105px; }
  .repo-row { flex-wrap: wrap; } .repo-symbol { width: 34px; height: 36px; font-size: 20px; }
  .repo-title h2 { font-size: 12px; } .repo-status { margin-left: 46px; flex-direction: row; align-items: center; width: 100%; text-align: left; min-width: 0; }
  .repo-status>a { margin-left: auto; } .repo-status small { display: none; }
  .form-columns { grid-template-columns: 1fr; } .login-card { padding: 32px; max-width: 470px; }
  .login-card h1 { font-size: 42px; } .detail-title { font-size: 25px; } .panel { padding: 22px; }
  .inline-form { margin: 12px 0 0; } .facts { gap: 14px; }
}
