/* Corde Control: operational workspace */
:root {
  --bg: #f3f5f9;
  --ink: #202c43;
  --muted: #69768c;
  --line: #e5eaf1;
  --purple: #6554cb;
  --purple-light: #eeebfa;
  --nav: #142137;
  --shadow: 0 3px 12px #14213704;
}
body { font-size: 14px; -webkit-font-smoothing: antialiased; }
#sidebar { background: linear-gradient(180deg, #17263e, #111d31); padding-top: 28px; }
.brand { font-size: 30px; }
.workspace { background: #ffffff04; margin-top: 29px; color: #e2e8f3; }
.workspace small, .nav-caption { color: #9baac0; }
nav button { font-size: 13px; color: #aab7cc; padding: 13px 14px; }
nav button.active { background: #ffffff0e; color: white; }
nav button.active .nav-icon { color: #b7aaff; }
.nav-count { background: #ffbc5b22; color: #ffd293; font-weight: 600; }
.sidebar-tip { background: #ffffff03; border-color: #ffffff0a; margin-top: 25px; }
.sidebar-tip strong { font-size: 12px; }
.sidebar-tip p { color: #a1afc4; font-size: 12px; }
.sidebar-tip button { font-size: 11px; color: #c5baff; }
.profile strong { font-size: 12px; }
.profile small { color: #9baac0; font-size: 11px; }
.topbar { height: 74px; background: white; }
.breadcrumb, .topbar-right { font-size: 12px; }
.breadcrumb strong { color: #35425a; }
main { padding-top: 30px; }
.eyebrow { color: #79839a; font-size: 10px; letter-spacing: 1.5px; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.7px; margin-top: 7px; }
h2 { font-size: 16px; }
.page-heading { margin-bottom: 25px; }
.page-heading p { font-size: 13px; color: #758197; }
.btn { font-size: 12px; min-height: 40px; border-radius: 7px; color: #47556d; padding: 10px 15px; }
.btn.primary { box-shadow: 0 3px 6px #6554cb16; }
.btn.small { font-size: 11px; min-height: 32px; }
.text-link { font-size: 12px; font-weight: 500; }
.stats { gap: 17px; }
.stat { padding: 20px; border-radius: 10px; border-color: #e4e9f1; }
.stat-top { color: #5c6b82; font-size: 12px; }
.stat-value { font-size: 29px; color: #23324b; margin: 15px 0 10px; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 11px; color: #758399; }
.stat-foot b { color: #5e6c83; font-weight: 550; }
.stat-icon { width: 32px; height: 32px; color: #7763cd; }
.panel { border-radius: 10px; }
.panel-head { padding: 22px; border-bottom: 1px solid #edf0f5; }
.panel-head p { font-size: 12px; line-height: 1.6; color: #7a879b; }
.pill { color: #6b7890; font-size: 11px; }
.chart-legend { padding-top: 18px; font-size: 11px; color: #6f7b91; }
.chart svg { height: 210px; }
.chart text { fill: #78869b; font-size: 10px; }
.chart-note { font-size: 11px; color: #7b889b; padding-bottom: 19px; }
th { font-size: 10px; font-weight: 600; color: #778399; background: #f8fafd; padding: 15px 20px; }
td { font-size: 12px; padding: 17px 20px; color: #66748b; }
td strong { color: #35445c; }
tbody tr:hover { background: #fafbfe; }
.table-footer { font-size: 11px; color: #7b879b; padding: 15px 20px; gap: 12px; }
.item-name { font-size: 12px; color: #34435c; font-weight: 600; }
.item-sub { font-size: 11px; color: #7c889c; }
.badge { font-size: 10px; padding: 6px 9px; font-weight: 550; color: #288463; background: #eaf6ef; }
.badge.orange { color: #a66a0a; background: #fff3da; }
.badge.red { color: #b44755; background: #fcecef; }
.badge.gray { color: #6d7a91; background: #eef1f6; }
.badge.purple { color: #7760bb; background: #f0ecfa; }
.filters { padding: 4px; gap: 3px; max-width: 100%; flex-wrap: wrap; }
.filters button { font-size: 11px; padding: 8px 11px; color: #6d7990; }
.filters button.selected { color: #5c48b6; font-weight: 600; }
.search-box input { height: 42px; font-size: 12px; }
.search-box span { top: 11px; }
.action-group { gap: 12px; align-items: center; }
.action-group .text-link:last-child { color: #8b7885; }
.package-card p, .settings-card p, .empty p { color: #748197; font-size: 12px; }
.package-year, .package-bottom { color: #748197; font-size: 12px; }
.package-card .package-icon { background: #edf1f8; color: #5b7196; }
.package-card:before { background: #7a8faf; height: 2px; }
.empty { padding: 40px 23px; color: #748197; }
.empty .empty-icon { font-size: 25px; }
.info-box { background: #f5f7fb; color: #6d7b92; font-size: 12px; }
label { font-size: 12px; color: #54647b; }
.modal-header p { font-size: 12px; color: #748197; line-height: 1.6; }
.confirm-copy { color: #65748c; }
footer { color: #8490a3; font-size: 10px; }
.notification-button { position: relative; width: 37px; height: 37px; border: 1px solid #e8ecf3; background: white; border-radius: 9px; color: #718098; display: grid; place-items: center; }
.notification-button svg { width: 19px; height: 19px; }
.notification-button>span { position: absolute; right: -5px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid white; border-radius: 10px; background: #cb8742; color: white; font-size: 9px; display: grid; place-items: center; }
.renewal-briefing { display: flex; align-items: center; gap: 18px; padding: 23px 25px; border: 1px solid #dce4ef; border-radius: 10px; background: linear-gradient(105deg,#f9fbff,white); margin-bottom: 23px; }
.briefing-icon { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; color: #5479a2; background: #eaf0f8; }
.briefing-icon svg { width: 23px; height: 23px; }
.briefing-copy { flex: 1; }
.briefing-copy .eyebrow { font-size: 9px; color: #72839b; letter-spacing: 1px; }
.briefing-copy h2 { margin: 8px 0; font-size: 16px; color: #30435e; }
.briefing-copy p { font-size: 12px; line-height: 1.8; color: #75839a; margin: 0; }
.renewal-briefing.warning { border-color: #eadfc9; background: linear-gradient(100deg,#fffbf2,#fff); }
.renewal-briefing.warning .briefing-icon { color: #aa7830; background: #fbefd8; }
.renewal-briefing.attention { border-color: #ead9dd; background: linear-gradient(100deg,#fdf6f7,#fff); }
.renewal-briefing.attention .briefing-icon { color: #b36d7b; background: #f8e8ec; }
.renewal-briefing .btn { flex-shrink: 0; background: #ffffffb3; }
.renewal-item { padding: 17px 20px; gap: 11px; }
.renewal-item-copy { flex: 1; min-width: 0; }
.renewal-item .days { flex-shrink: 0; }
.days strong { font-size: 11px; color: #64758f; }
.days small { font-size: 10px; color: #8290a5; }
.is-upcoming .days strong { color: #ac7a2e; }
.is-expired .days strong { color: #b45f6d; }
.renewal-open { background: #f5f7fb; color: #7a879d; border: 1px solid #e8edf4; border-radius: 6px; width: 26px; height: 28px; flex-shrink: 0; }
.expired-callout { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: calc(100% - 36px); margin: 13px 18px 18px; padding: 12px; background: #fdf3f5; color: #af6875; border: 1px solid #f3e2e6; border-radius: 7px; font-size: 11px; }
.expired-callout span { white-space: nowrap; font-weight: 600; }
.reminder-policy { display: inline-flex; align-items: center; gap: 8px; color: #607b6f; font-size: 11px; padding: 9px 12px; border-radius: 7px; border: 1px solid #dce9e2; background: #f6fbf8; }
.reminder-policy svg { height: 16px; width: 16px; }
.renewal-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; margin-bottom: 25px; }
.summary-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e3e9f1; border-radius: 10px; padding: 21px; background: white; text-align: left; color: #66758d; }
button.summary-card:hover { border-color: #c6bce8; box-shadow: 0 4px 14px #202c4306; }
.summary-card>span { font-size: 12px; }
.summary-card strong { margin: 13px 0 7px; font-size: 28px; font-weight: 650; letter-spacing: -.7px; color: #30415d; font-variant-numeric: tabular-nums; }
.summary-card small { font-size: 11px; color: #8490a3; }
.summary-card.amber { border-top: 3px solid #d7aa66; padding-top: 19px; }
.summary-card.rose { border-top: 3px solid #c8919e; padding-top: 19px; }
.renewal-policy { display: flex; gap: 10px; align-items: center; margin: 18px 2px; color: #7c899d; }
.renewal-policy>span { flex-shrink: 0; }
.renewal-policy svg { width: 17px; height: 17px; }
.renewal-policy p { font-size: 11px; line-height: 1.9; margin: 0; }
.reminder-section h3 { font-size: 12px; margin: 6px 0 14px; color: #69788f; display: flex; justify-content: space-between; }
.reminder-section h3 span { color: #a58247; }
.reminder-section+.reminder-section { margin-top: 24px; }
.reminder-section .renewal-item { padding: 15px 0; }
.reminder-empty { color: #8490a3; font-size: 12px; line-height: 1.8; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); background: white; border-radius: 0 0 10px 10px; }
.pagination-info { display: flex; gap: 5px; align-items: center; color: #7a879d; font-size: 11px; }
.pagination-info strong { color: #485a75; font-weight: 550; font-variant-numeric: tabular-nums; }
.pagination-info label { display: inline-flex; gap: 7px; align-items: center; margin-left: 14px; color: #7a879d; font-size: 11px; }
.pagination-info select { width: 61px; margin: 0; padding: 6px 7px; border-color: #e4e9f2; font-size: 11px; color: #5b6a82; }
nav.page-buttons { display: flex; align-items: center; gap: 5px; }
nav.page-buttons button { display: grid; place-items: center; width: 31px; min-width: 31px; height: 31px; padding: 0; border: 1px solid #e6eaf2; border-radius: 6px; background: white; color: #6a7790; font-size: 11px; }
nav.page-buttons button:hover { color: #6554cb; border-color: #c5b9ed; }
nav.page-buttons button[aria-current="page"] { color: #6554cb; border-color: #d9d1f3; background: #f1edfb; font-weight: 650; }
nav.page-buttons button:disabled { opacity: .4; cursor: default; }
nav.page-buttons>span { color: #9ca7ba; font-size: 11px; padding: 0 4px; }
main[aria-busy="true"] .table-wrap, main[aria-busy="true"] .cards-grid { opacity: .55; pointer-events: none; }
main[aria-busy="true"] .pagination { pointer-events: none; }
#modal-form .form-grid>div label+label { margin-top: 14px; }
.cards-grid+.pagination { margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; }
@media(max-width:1150px) {
  .stat { padding: 17px; }
  .stat-top { font-size: 11px; }
  .stat-value { font-size: 25px; }
  .renewal-briefing { padding: 20px; gap: 14px; }
  .briefing-copy h2 { font-size: 15px; }
  .renewal-item { padding: 15px; gap: 9px; }
  .renewal-item .avatar { width: 29px; height: 29px; }
  .renewal-item .item-name { font-size: 11px; }
  .renewal-item .item-sub { font-size: 10px; }
  .summary-card { padding: 17px; }
  .summary-card.amber, .summary-card.rose { padding-top: 15px; }
}
@media(min-width:901px) and (max-width:1400px) {
  th, td { padding-left: 13px; padding-right: 13px; }
  .action-group { gap: 9px; }
  .action-group .text-link { font-size: 11px; }
}
@media(max-width:900px) {
  .renewal-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .renewal-briefing { flex-wrap: wrap; }
  .renewal-briefing .btn { margin-left: 60px; }
  .heading-actions { justify-content: flex-start; }
}
@media(max-width:650px) {
  .pagination { padding: 15px; flex-wrap: wrap; justify-content: center; gap: 13px; }
  .pagination-info { width: 100%; justify-content: center; }
  .topbar { height: 64px; }
  .topbar-right { gap: 14px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb>span:first-of-type { display: none; }
  .breadcrumb>span:nth-of-type(2) { display: none; }
  h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .renewal-briefing { padding: 18px; gap: 12px; }
  .briefing-icon { height: 37px; width: 37px; border-radius: 9px; }
  .briefing-copy { flex-basis: calc(100% - 50px); }
  .briefing-copy .eyebrow { font-size: 8px; letter-spacing: .5px; }
  .briefing-copy h2 { font-size: 14px; line-height: 1.5; }
  .briefing-copy p { font-size: 11px; }
  .renewal-briefing .btn { margin-left: 49px; font-size: 11px; }
  .stat { padding: 15px; }
  .stat-top { font-size: 10px; gap: 6px; }
  .stat-value { font-size: 25px; }
  .stat-foot { font-size: 10px; }
  .stat-icon { width: 26px; height: 26px; }
  .renewal-summary { gap: 11px; }
  .summary-card { padding: 15px; }
  .summary-card.amber, .summary-card.rose { padding-top: 13px; }
  .summary-card>span { font-size: 11px; }
  .summary-card strong { font-size: 25px; }
  .summary-card small { font-size: 10px; line-height: 1.5; }
  .toolbar { gap: 13px; }
  .filters { align-self: stretch; }
  .filters button { font-size: 10px; padding: 8px 9px; }
  .panel-head { padding: 19px; }
  .panel-head h2 { font-size: 15px; }
  .panel-head p { font-size: 11px; }
  .table-footer { flex-wrap: wrap; }
}
