:root {
  --canvas: #e8f0ef;
  --surface: #f8faf7;
  --surface-raised: #fffdf9;
  --ink: #15373d;
  --muted: #687f82;
  --line: #d1ddda;
  --line-strong: #a9c0bd;
  --primary: #285f5d;
  --primary-dark: #123f47;
  --primary-soft: #dfecea;
  --accent: #c69255;
  --accent-soft: #f5eadb;
  --danger: #aa5b64;
  --danger-soft: #faecef;
  --warning: #9b7a32;
  --warning-soft: #fbf3df;
  --shadow-sm: 0 8px 24px rgba(24, 62, 66, .08);
  --shadow-md: 0 18px 45px rgba(24, 62, 66, .13);
  --shadow-lg: 0 28px 80px rgba(24, 62, 66, .18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Noto Serif SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(123, 184, 180, .25), transparent 31rem),
    radial-gradient(circle at 94% 10%, rgba(218, 174, 122, .22), transparent 29rem),
    linear-gradient(145deg, #e7f0ef 0%, #f4f5f0 48%, #edf1ee 100%);
  background-attachment: fixed;
  font: 15px/1.55 var(--font-sans);
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(rgba(24, 77, 77, .12) .7px, transparent .7px),
    radial-gradient(rgba(198, 146, 85, .1) .7px, transparent .7px);
  background-position: 0 0, 17px 19px;
  background-size: 31px 31px, 43px 43px;
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed;
  z-index: -3;
  inset: -18%;
  pointer-events: none;
  background: conic-gradient(from 135deg at 50% 50%, rgba(255,255,255,.2), transparent 28%, rgba(104,170,166,.1), transparent 72%, rgba(218,174,122,.09));
  animation: ambientRotate 28s linear infinite;
}
.ambient-layer { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; display: block; border-radius: 999px; filter: blur(2px); opacity: .55; animation: orbFloat 18s ease-in-out infinite alternate; }
.orb-a { width: 360px; height: 360px; top: -170px; right: 10%; background: radial-gradient(circle, rgba(185,215,226,.34), rgba(185,215,226,0) 70%); }
.orb-b { width: 430px; height: 430px; bottom: -230px; left: -160px; background: radial-gradient(circle, rgba(231,200,176,.24), rgba(231,200,176,0) 68%); animation-delay: -6s; }
.orb-c { width: 260px; height: 260px; top: 44%; right: -100px; background: radial-gradient(circle, rgba(164,188,201,.2), rgba(164,188,201,0) 70%); animation-delay: -11s; }
.ambient-particle { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(46,83,97,.38); box-shadow: 0 0 0 5px rgba(46,83,97,.05), 0 0 18px rgba(46,83,97,.18); animation: particleFloat 12s ease-in-out infinite; }
.particle-a { top: 19%; left: 11%; animation-delay: -3s; }.particle-b { top: 30%; right: 18%; animation-delay: -8s; }.particle-c { bottom: 27%; left: 23%; animation-delay: -5s; }.particle-d { bottom: 12%; right: 9%; animation-delay: -10s; }
@keyframes ambientRotate { to { transform: rotate(360deg); } }
@keyframes orbFloat { from { transform: translate3d(-8px, -4px, 0) scale(.98); } to { transform: translate3d(14px, 16px, 0) scale(1.05); } }
@keyframes particleFloat { 0%,100% { opacity: .25; transform: translate3d(0, 0, 0); } 50% { opacity: .75; transform: translate3d(8px, -16px, 0); } }

header, main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 38px 38px 32px;
  border: 1px solid rgba(214, 226, 229, .9);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(249,251,252,.84), rgba(255,255,255,.66));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
  isolation: isolate;
}
header::after { content: ""; position: absolute; z-index: -1; left: 32px; right: 32px; bottom: 0; height: 2px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(46,83,97,.42), rgba(217,169,121,.62), transparent); }
header > div { min-width: 0; }
header .sub { max-width: 560px; margin-top: 9px; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
main { padding: 27px 0 62px; }
.account-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 12px 5px 6px; border: 1px solid rgba(214,226,229,.95); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.account-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: linear-gradient(145deg, #3d6877, var(--primary)); color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .05em; box-shadow: 0 5px 12px rgba(46,83,97,.2); }
.account-chip span:last-child { display: grid; gap: 0; min-width: 0; }.account-chip small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }.account-chip strong { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 15px; padding: 20px 22px; border: 1px solid rgba(214,226,229,.95); border-radius: 20px; background: linear-gradient(135deg, rgba(249,251,252,.82), rgba(255,255,255,.64)); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.workspace-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }.workspace-heading .eyebrow { flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); }.workspace-heading h2 { margin: 1px 0 2px; font-size: 21px; }.workspace-heading .muted { font-size: 13px; }.workspace-actions { display: flex; align-items: end; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }.workspace-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }.workspace-actions select { min-width: 180px; min-height: 42px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }.account-stats article { position: relative; overflow: hidden; padding: 15px 17px; border: 1px solid rgba(214,226,229,.9); border-radius: 16px; background: rgba(255,255,255,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }.account-stats article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #b9d7e2; }.account-stats article:nth-child(2)::before { background: var(--primary); }.account-stats article:nth-child(3)::before { background: var(--accent); }.account-stats span { display: block; color: var(--muted); font-size: 12px; }.account-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; }.account-stats article:nth-child(2) strong { color: var(--primary-dark); }.account-stats article:nth-child(3) strong { color: #986b42; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217,169,121,.14); }
h1, h2, h3 { color: var(--ink); }
h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
h2 { margin: 0; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 820; }
h3 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; }
.sub, .muted { margin: 0; color: var(--muted); }

button, input, select, textarea, output { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(46,83,97,.24); outline-offset: 3px; }
button { min-height: 41px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(255,255,255,.8); color: var(--ink); padding: 9px 13px; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
button:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35,67,79,.08); }
button:active { transform: translateY(1px) scale(.99); }
.primary, .secondary { position: relative; isolation: isolate; min-height: 44px; border-radius: 12px; padding: 10px 17px; font-weight: 800; overflow: hidden; }
.primary::after { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -60%; width: 40%; transform: skewX(-20deg); background: rgba(255,255,255,.23); transition: left .55s ease; }
.primary:hover::after { left: 130%; }
.primary { border-color: var(--primary); background: linear-gradient(135deg, #3d6877, var(--primary)); color: #fff; box-shadow: 0 10px 24px rgba(46,83,97,.24), inset 0 1px 0 rgba(255,255,255,.2); }
.primary:hover { border-color: var(--primary-dark); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 14px 28px rgba(46,83,97,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.secondary { border-color: var(--line-strong); background: rgba(255,255,255,.72); color: var(--primary-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.secondary:hover { border-color: #8caeb9; background: var(--primary-soft); }
.danger { color: var(--danger) !important; border-color: #e1b9be !important; }
.danger:hover { background: var(--danger-soft) !important; }

.section-head, .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-head { margin: 3px 0 17px; }
.section-head > div:first-child { min-width: 0; }.section-head .muted { margin-top: 6px; }
.project-home-actions, .detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.action-select { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 14px; background: rgba(255,255,255,.78); color: var(--primary-dark); font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.action-select:hover { border-color: #8caeb9; background: var(--primary-soft); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35,67,79,.08); }
.action-select:disabled { cursor: not-allowed; opacity: .55; }

.toolbar, .payment-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid rgba(214,226,229,.95); border-radius: 18px; background: linear-gradient(135deg, rgba(249,251,252,.83), rgba(255,255,255,.7)); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.toolbar { margin: 16px 0; }.toolbar input:first-child { flex: 1 1 280px; }.toolbar input, .toolbar select, .toolbar button { min-height: 43px; }
input, select, textarea { min-width: 0; border: 1px solid #c6d7dc; border-radius: var(--radius-sm); padding: 9px 11px; background: rgba(255,255,255,.84); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input:hover, select:hover, textarea:hover { border-color: #9cb8c2; }.toolbar input:focus, .toolbar select:focus, input:focus, select:focus, textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(46,83,97,.1), 0 6px 18px rgba(35,67,79,.06); outline: 0; }
input::placeholder, textarea::placeholder { color: #9aabb2; }select { padding-right: 34px; }
.payment-bar { margin: 16px 0; justify-content: flex-start; }.payment-bar label { display: flex; align-items: center; gap: 10px; font-weight: 800; }.payment-bar input { width: 155px; }.payment-bar #projectPaymentHint { margin-left: auto; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 18px; }
.project-card { position: relative; display: block; overflow: hidden; padding: 20px; border: 1px solid rgba(214,226,229,.95); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(249,251,252,.76)); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.94); color: var(--ink); transition: transform .28s cubic-bezier(.2,.75,.3,1), border-color .28s ease, box-shadow .28s ease; }
.project-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, rgba(46,83,97,.72), rgba(185,215,226,.72), rgba(217,169,121,.68)); }
.project-card::after { content: ""; position: absolute; right: -40px; top: -45px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(185,215,226,.22), transparent 68%); pointer-events: none; transition: transform .35s ease; }
.project-card:hover { transform: translateY(-6px); border-color: #9ebbc5; box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,.4) inset; }.project-card:hover::after { transform: translate3d(-16px, 18px, 0) scale(1.12); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.project-select { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }.project-select input { accent-color: var(--primary); }
.project-open { flex: 1; min-width: 0; min-height: 0; border: 0 !important; padding: 0 !important; background: transparent !important; text-align: left; box-shadow: none !important; }.project-open:hover { color: var(--primary-dark); }.project-open h3 { overflow-wrap: anywhere; }
.project-card > p { min-height: 38px; margin: 13px 0 0; color: var(--muted); line-height: 1.55; }.project-card .project-period { min-height: auto; margin-top: 2px; font-size: 13px; }.project-open h3 { overflow-wrap: anywhere; word-break: break-word; line-height: 1.22; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(214,226,229,.9); color: var(--muted); font-size: 13px; }.project-meta span:nth-child(2) { color: var(--ink); font-weight: 800; }.project-meta span:nth-child(3) { color: #9a7047; font-weight: 800; }.project-unpaid { flex-basis: 100%; display: block; color: #9a7047 !important; font-weight: 800; }.project-delete { margin-top: 14px; font-size: 12px; }
.project-grid.list-view { display: flex; flex-direction: column; gap: 10px; }.project-grid.list-view .project-card { display: grid; grid-template-columns: minmax(300px,1.4fr) minmax(220px,1.3fr) minmax(170px,.9fr) minmax(185px,.9fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 15px; }.project-grid.list-view .project-card::before { inset: 0 auto 0 0; width: 4px; height: auto; }.project-grid.list-view .project-card > p { min-height: auto; margin: 0; }.project-grid.list-view .project-card .project-period { margin: 0; }.project-grid.list-view .project-meta { margin: 0; padding: 0; border-top: 0; }.project-grid.list-view .project-delete { justify-self: end; margin: 0; }

.status { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }.status.settled, .status.paid { background: var(--primary-soft); color: var(--primary-dark); }.status.unsettled, .status.unpaid { background: var(--accent-soft); color: #956342; }.status.partial { background: var(--warning-soft); color: var(--warning); }
.detail-head { align-items: flex-start; margin-bottom: 15px; }.detail-head > div:nth-child(2) { flex: 1; min-width: 0; }.detail-head .muted { margin-top: 6px; }.detail-actions { padding-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.stats article { position: relative; overflow: hidden; padding: 20px 21px; border: 1px solid rgba(214,226,229,.95); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(249,251,252,.76)); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.9); }.stats article::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #c5d3d8; }.stats article:nth-child(2)::before { background: linear-gradient(90deg, var(--primary), #8fb6c4); }.stats article:nth-child(3)::before { background: linear-gradient(90deg, var(--accent), #e6c4a2); }.stats span, .stats small { display: block; color: var(--muted); font-size: 13px; }.stats strong { display: block; margin-top: 7px; color: var(--ink); font-size: 28px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }.stats article:nth-child(2) strong { color: var(--primary-dark); }.stats article:nth-child(3) strong { color: #986b42; }

.table-wrap { overflow: auto; border: 1px solid rgba(214,226,229,.95); border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(12px); }table { width: 100%; min-width: 1050px; border-collapse: collapse; }th, td { padding: 14px 15px; border-bottom: 1px solid rgba(214,226,229,.9); text-align: left; vertical-align: top; }th { position: sticky; top: 0; z-index: 1; background: rgba(237,244,246,.94); color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .05em; white-space: nowrap; backdrop-filter: blur(12px); }tbody tr:last-child td { border-bottom: 0; }tbody tr { transition: background .18s ease; }tbody tr:hover td { background: rgba(229,240,243,.54); }td.money { color: var(--primary-dark); font-weight: 850; font-variant-numeric: tabular-nums; }.minor { color: var(--muted); font-size: 13px; }.tag { color: #9a7047; font-size: 12px; }.row-actions { white-space: nowrap; }.empty { padding: 48px 20px; color: var(--muted); text-align: center; }

.mascot-assistant { position: fixed; z-index: 30; right: 22px; bottom: 18px; display: grid; justify-items: end; gap: 2px; pointer-events: none; }.mascot-button { position: relative; width: 126px; height: 126px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; pointer-events: auto; animation: mascotFloat 4.6s ease-in-out infinite; }.mascot-button:hover { transform: translateY(-5px) rotate(-2deg); box-shadow: none; }.mascot-button:active { transform: translateY(1px) scale(.96); }.mascot-button img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 13px rgba(24,54,66,.19)); }.mascot-bubble { position: relative; max-width: 218px; margin-right: 74px; padding: 9px 13px; border: 1px solid rgba(214,226,229,.95); border-radius: 13px 13px 4px 13px; color: var(--primary-dark); font-size: 12px; line-height: 1.5; background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(35,67,79,.13), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(12px); opacity: 0; transform: translate3d(7px, 8px, 0) scale(.94); transform-origin: bottom right; transition: opacity .25s ease, transform .25s ease; }.mascot-bubble::after { content: ""; position: absolute; right: 52px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(214,226,229,.95); border-bottom: 1px solid rgba(214,226,229,.95); background: rgba(255,255,255,.9); transform: rotate(45deg); }.mascot-assistant.has-message .mascot-bubble { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }.mascot-assistant.is-happy .mascot-button { animation: mascotHappy .72s ease-in-out 1; }.mascot-assistant.is-attention .mascot-button { animation: mascotAttention .62s ease-in-out 1; }.mascot-assistant.is-attention .mascot-bubble { color: #9a6547; border-color: rgba(217,169,121,.52); background: rgba(255,250,244,.94); }
.mascot-assistant[hidden] { display: none; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-7px) rotate(-1deg); } }@keyframes mascotHappy { 0%,100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-10px) rotate(-6deg); } 70% { transform: translateY(-5px) rotate(5deg); } }@keyframes mascotAttention { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } }

dialog { width: min(720px, calc(100% - 30px)); max-height: 90vh; overflow: auto; padding: 0; border: 1px solid rgba(214,226,229,.95); border-radius: 24px; background: rgba(249,251,252,.96); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(22px); }dialog::backdrop { background: rgba(24,54,66,.46); backdrop-filter: blur(7px); }dialog form { padding: 29px; }.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }.modal-head h2 { margin: 0; }.icon { min-width: 40px; min-height: 40px; padding: 4px 8px; border: 0 !important; background: transparent !important; color: var(--muted); font-size: 23px; box-shadow: none !important; }.icon:hover { background: var(--primary-soft) !important; color: var(--primary-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }.form-grid label, dialog form > label { display: grid; gap: 6px; margin: 9px 0; font-size: 13px; font-weight: 800; }.form-grid small { font-weight: 400; }.project-date-grid { margin-top: 3px; }.wide { grid-column: 1 / -1; }.hint { margin-bottom: 10px; padding: 11px 13px; border: 1px solid #cfe1e5; border-radius: var(--radius-sm); background: #eef6f7; color: var(--muted); font-size: 13px; }.small { min-height: 29px; padding: 3px 8px; font-size: 12px; }.form-grid select[multiple] { height: 84px; }.form-grid select[multiple] option { padding: 4px; }.form-grid label:nth-child(10), .form-grid label:nth-child(11) { position: relative; }.form-grid label:nth-child(10) .small, .form-grid label:nth-child(11) .small { position: absolute; top: -5px; right: 0; }
output { display: block; margin-top: 16px; padding: 12px 13px; border: 1px solid #b9d5dc; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-dark); font-weight: 850; }.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }.error { min-height: 1.2em; color: var(--danger); }.column-list { padding-left: 28px; }.column-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.74); }.column-list li button { min-height: 32px; padding: 3px 8px; margin-left: 4px; }

/* GUIXU V2: ledger folio + restrained React Bits-inspired motion language. */
.guixu-v2 header {
  align-items: center;
  overflow: hidden;
  border-color: rgba(255,255,255,.13);
  color: #edf7f4;
  background:
    linear-gradient(116deg, rgba(17,54,61,.98) 0%, rgba(28,83,81,.97) 63%, rgba(45,82,84,.96) 100%);
  box-shadow: 0 24px 58px rgba(17,54,61,.24), inset 0 1px 0 rgba(255,255,255,.11);
}
.guixu-v2 header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  background-image:
    radial-gradient(rgba(244,235,214,.17) .8px, transparent .8px),
    radial-gradient(circle at 85% 18%, rgba(198,146,85,.22), transparent 24%),
    linear-gradient(112deg, transparent 0 67%, rgba(255,255,255,.055) 67.2% 67.4%, transparent 67.6%);
  background-size: 23px 23px, auto, auto;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.28), #000 58%, rgba(0,0,0,.86));
}
.guixu-v2 header::after {
  z-index: 0;
  left: 38px;
  right: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198,146,85,.9), rgba(235,210,169,.32), transparent 82%);
}
.guixu-v2 header > * { position: relative; z-index: 1; }
.guixu-v2 header h1 { color: #fffaf0; text-shadow: 0 5px 24px rgba(0,0,0,.18); }
.guixu-v2 header .eyebrow { color: #e8c590; }
.guixu-v2 header .eyebrow::before { background: #e4b875; box-shadow: 0 0 0 5px rgba(228,184,117,.15), 0 0 18px rgba(228,184,117,.35); }
.guixu-v2 header .sub { color: #c7dcda; }
.guixu-v2 header .account-chip {
  border-color: rgba(255,255,255,.18);
  background: rgba(7,35,40,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.guixu-v2 header .account-avatar { background: linear-gradient(145deg, #d3a260, #9d7041); color: #fff9ec; }
.guixu-v2 header .account-chip small { color: #9ebdbb; }
.guixu-v2 header .account-chip strong { color: #f8f4e9; }
.guixu-v2 header .secondary {
  border-color: rgba(255,255,255,.22);
  color: #eff8f5;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.guixu-v2 header .secondary:hover { border-color: rgba(239,214,176,.58); color: #fff9ed; background: rgba(255,255,255,.14); }
.guixu-v2 header .primary {
  border-color: #deb16f;
  color: #193b3e;
  background: linear-gradient(135deg, #efd09e, #c99554);
  box-shadow: 0 12px 28px rgba(7,31,35,.25), inset 0 1px 0 rgba(255,255,255,.46);
}
.guixu-v2 header .primary:hover { border-color: #f0d19f; color: #102f33; background: linear-gradient(135deg, #f5dbb0, #d4a15e); }

.guixu-v2 .workspace-bar {
  position: relative;
  overflow: hidden;
  border-color: rgba(171,194,188,.72);
  background: linear-gradient(112deg, rgba(255,253,248,.96), rgba(244,249,246,.9));
  box-shadow: 0 12px 30px rgba(28,72,72,.09), inset 0 1px 0 #fff;
}
.guixu-v2 .workspace-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #c69255, #2f726d 72%, #91b9b4);
}
.guixu-v2 .workspace-heading h2 { color: #173f43; }

.guixu-v2 .account-stats article,
.guixu-v2 .stats article {
  border-color: rgba(177,197,192,.68);
  background: rgba(255,253,249,.88);
  box-shadow: 0 10px 26px rgba(27,70,70,.075), inset 0 1px 0 #fff;
}
.guixu-v2 .account-stats article:nth-child(2),
.guixu-v2 .stats article:nth-child(2) {
  border-color: rgba(25,82,80,.9);
  background: linear-gradient(138deg, #17474c, #286a65);
  box-shadow: 0 14px 32px rgba(21,67,68,.2), inset 0 1px 0 rgba(255,255,255,.12);
}
.guixu-v2 .account-stats article:nth-child(2)::before,
.guixu-v2 .stats article:nth-child(2)::before { background: linear-gradient(180deg, #efcb91, #c79251); }
.guixu-v2 .account-stats article:nth-child(2) span,
.guixu-v2 .stats article:nth-child(2) span { color: #a9c8c4; }
.guixu-v2 .account-stats article:nth-child(2) strong,
.guixu-v2 .stats article:nth-child(2) strong { color: #fff9ed; }
.guixu-v2 .account-stats article:nth-child(3),
.guixu-v2 .stats article:nth-child(3) {
  border-color: rgba(203,157,97,.45);
  background: linear-gradient(138deg, #fff9ed, #f2e3ce);
}
.guixu-v2 .account-stats article:nth-child(3) span,
.guixu-v2 .stats article:nth-child(3) span { color: #8c6844; }
.guixu-v2 .account-stats article:nth-child(3) strong,
.guixu-v2 .stats article:nth-child(3) strong { color: #88542f; }

.guixu-v2 .section-head { padding-left: 4px; }
.guixu-v2 .toolbar,
.guixu-v2 .payment-bar {
  border-color: rgba(174,196,190,.72);
  background: linear-gradient(135deg, rgba(248,251,247,.97), rgba(255,252,246,.9));
  box-shadow: 0 10px 27px rgba(28,72,72,.08), inset 0 1px 0 #fff;
}
.guixu-v2 .payment-bar { border-left: 4px solid #c69255; }
.guixu-v2 input,
.guixu-v2 select,
.guixu-v2 textarea { border-color: #bfd0cc; background: rgba(255,254,251,.96); }
.guixu-v2 input:focus,
.guixu-v2 select:focus,
.guixu-v2 textarea:focus { box-shadow: 0 0 0 4px rgba(40,95,93,.11), 0 7px 18px rgba(26,72,72,.07); }

.guixu-v2 .project-grid { gap: 19px; }
.guixu-v2 .project-card {
  min-height: 244px;
  border-color: rgba(177,198,193,.78);
  background:
    radial-gradient(circle at 94% 4%, rgba(198,146,85,.16), transparent 34%),
    linear-gradient(145deg, #fffefa, #f6faf7);
  box-shadow: 0 13px 32px rgba(26,69,69,.09), inset 0 1px 0 #fff;
}
.guixu-v2 .project-card::before { inset: 0 auto 0 0; width: 4px; height: auto; background: linear-gradient(180deg, #c69255, #2d6c68 64%, #a9ccc5); }
.guixu-v2 .project-card::after {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  opacity: .2;
  background: radial-gradient(circle at 82% 9%, rgba(255,255,255,.95), transparent 29%);
  transform: none;
  transition: opacity .28s ease, background-position .28s ease;
}
.guixu-v2 .project-card > * { position: relative; z-index: 1; }
.guixu-v2 .project-card:hover { transform: translateY(-4px); border-color: #82aaa4; box-shadow: 0 20px 44px rgba(23,68,68,.14), 0 0 0 1px rgba(255,255,255,.6) inset; }
.guixu-v2 .project-card:hover::after { opacity: .72; transform: none; }
.guixu-v2 .project-open h3 { color: #164349; font-family: var(--font-display); font-size: 21px; }
.guixu-v2 .project-meta { border-top-color: rgba(169,192,186,.58); }
.guixu-v2 .project-unpaid { color: #935c35 !important; }
.guixu-v2 .project-grid.list-view .project-card { min-height: 0; }

.guixu-v2 .status.settled,
.guixu-v2 .status.paid { border: 1px solid rgba(53,124,108,.16); color: #255d53; background: #dfeee7; }
.guixu-v2 .status.unsettled,
.guixu-v2 .status.unpaid { border: 1px solid rgba(176,111,62,.14); color: #8b5330; background: #f7e8d7; }

.guixu-v2 .table-wrap {
  border-color: rgba(168,192,186,.75);
  background: #fffefa;
  box-shadow: 0 18px 42px rgba(23,67,67,.12), inset 0 1px 0 #fff;
}
.guixu-v2 th {
  color: #edf7f4;
  background: rgba(27,79,80,.97);
  border-bottom-color: rgba(255,255,255,.13);
  backdrop-filter: blur(14px);
}
.guixu-v2 tbody tr:nth-child(even) td { background: rgba(237,244,240,.35); }
.guixu-v2 tbody tr:hover td { background: rgba(219,235,229,.72); }
.guixu-v2 dialog { border-color: rgba(172,195,189,.78); background: rgba(252,252,247,.98); }
.guixu-v2 dialog::backdrop { background: rgba(10,47,51,.55); }

@keyframes guiXuReveal { from { opacity: .01; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.guixu-v2 main > section { animation: guiXuReveal .24s cubic-bezier(.22,.72,.28,1) both; }
.guixu-v2 .project-card { animation: guiXuReveal .2s cubic-bezier(.22,.72,.28,1) both; }

@media (max-width: 980px) { header, main { width: min(100% - 32px, 760px); } header { padding-left: 28px; padding-right: 28px; }.workspace-bar { align-items: flex-start; flex-direction: column; }.workspace-actions { width: 100%; justify-content: flex-start; }.project-grid.list-view .project-card { grid-template-columns: 1fr 1fr; }.project-grid.list-view .project-card .project-meta { grid-column: 1 / -1; }.project-grid.list-view .project-delete { justify-self: start; } }
@media (max-width: 720px) { header { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 12px; padding: 28px 22px 25px; border-radius: 23px; } header::after { left: 20px; right: 20px; } header, main { width: min(100% - 24px, 560px); } header .primary { width: 100%; }.header-actions { width: 100%; justify-content: stretch; }.header-actions > * { flex: 1 1 100%; width: 100%; justify-content: center; }.account-chip { justify-content: flex-start; }.workspace-bar { padding: 17px; }.workspace-heading { align-items: flex-start; }.workspace-heading .eyebrow { display: none; }.workspace-actions { align-items: stretch; flex-direction: column; }.workspace-actions label, .workspace-actions select, .workspace-actions button { width: 100%; }.account-stats { grid-template-columns: 1fr; gap: 8px; margin-bottom: 17px; }.section-head, .detail-head { align-items: flex-start; flex-direction: column; }.section-head > div, .project-home-actions, .detail-actions { width: 100%; }.project-home-actions, .detail-actions { justify-content: flex-start; }.project-home-actions > *, .detail-actions > * { flex: 1 1 100%; width: 100%; min-width: 0; }.toolbar { align-items: stretch; }.toolbar > * { flex: 1 1 100%; width: 100%; }.toolbar input:first-child { flex-basis: 100%; }.action-select { width: 100%; }.payment-bar { align-items: stretch; flex-direction: column; }.payment-bar label { align-items: stretch; flex-direction: column; }.payment-bar input, .payment-bar button { width: 100%; }.payment-bar #projectPaymentHint { margin-left: 0; }.stats { grid-template-columns: 1fr; gap: 11px; }.form-grid { grid-template-columns: 1fr; }.wide { grid-column: auto; } dialog form { padding: 22px 18px; }.project-grid.list-view .project-card { display: block; }.project-grid.list-view .project-card .project-card-head { margin-bottom: 8px; }.project-grid.list-view .project-card .project-meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }.project-grid.list-view .project-delete { margin-top: 11px; } }
@media (max-width: 720px) { .mascot-assistant { right: 7px; bottom: 8px; }.mascot-button { width: 88px; height: 88px; }.mascot-bubble { max-width: 176px; margin-right: 47px; padding: 7px 10px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
