:root, html[data-theme="light"], html[data-theme="dark"] {
  --primary: #4680ff;
  --secondary: #1d2630;
  --accent: #4680ff;
  --primary-fg: #fff;
  --body-fg: #262f3d;
  --body-bg: #f5f7fb;
  --body-quiet-color: #6f7b8d;
  --body-medium-color: #526071;
  --header-color: #1d2630;
  --header-branding-color: #1d2630;
  --header-bg: #fff;
  --header-link-color: #526071;
  --breadcrumbs-fg: #778398;
  --breadcrumbs-link-fg: #526071;
  --breadcrumbs-bg: #f5f7fb;
  --link-fg: #376dff;
  --link-hover-color: #2050ff;
  --link-selected-fg: #2050ff;
  --hairline-color: #e8ecf3;
  --border-color: #e4e9f1;
  --darkened-bg: #f8faff;
  --selected-bg: #edf3ff;
  --selected-row: #f4f8ff;
  --button-bg: #4680ff;
  --button-hover-bg: #376dff;
  --default-button-bg: #4680ff;
  --default-button-hover-bg: #376dff;
  --close-button-bg: #66758a;
  --message-success-bg: #e9f7f0;
  --message-warning-bg: #fff5e6;
  --message-error-bg: #fff0f0;
}

html { color-scheme: light; }
body, button, input, select, textarea { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { font-size: 14px; background: #f5f7fb; }
body.login { background: #f5f7fb; }
a { transition: color .15s ease, background .15s ease, border-color .15s ease; }

#header {
  min-height: 72px; padding: 0 32px; display: flex; align-items: center;
  gap: 34px; box-shadow: 0 1px 0 #e7ebf1; position: relative; z-index: 20;
}
#branding { display: flex; align-items: center; flex: 0 0 auto; }
#header #branding { order: 1; }
.tp-brand { display: flex; align-items: center; gap: 11px; color: #1d2630; }
.tp-mark, .tp-login-mark {
  background: #4680ff; color: #fff; display: grid; place-items: center; font-weight: 800;
  letter-spacing: -.09em; box-shadow: 0 5px 14px rgba(70,128,255,.22);
}
.tp-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 24px; }
.tp-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.tp-brand-copy strong { font-size: 15px; letter-spacing: .045em; }
.tp-brand-copy small { color: #7c8796; margin-top: 3px; font-size: 11px; font-weight: 600; }
.tp-topnav { display: flex; align-self: stretch; align-items: center; gap: 8px; order: 2; margin-left: auto; }
.tp-topnav a { color: #627084; font-size: 13px; font-weight: 650; text-decoration: none; padding: 11px 13px; border-radius: 8px; }
.tp-topnav a:hover, .tp-topnav a:focus-visible { color: #376dff; background: #edf3ff; }
#user-tools { display: flex; align-items: center; order: 3; margin-left: 7px; text-transform: none; font-size: 12px; }
#user-tools a, #user-tools button { color: #657287; font-size: 12px; font-weight: 600; text-decoration: none; }
#user-tools a:hover, #user-tools button:hover { color: #376dff; }
#user-tools button { background: transparent; border: 0; padding: 0; cursor: pointer; width: 100%; text-align: left; }
.tp-user { color: #1d2630; font-weight: 700; border-radius: 20px; background: #eef2f8; padding: 9px 13px; }
.tp-menu { position: relative; }
.tp-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tp-menu summary::-webkit-details-marker { display: none; }
.tp-menu summary span { color: #8b99ab; font-size: 15px; line-height: 1; }
.tp-menu[open] > summary, .tp-menu summary:hover { color: #376dff; }
.tp-nav-menu > summary { color: #627084; font-size: 13px; font-weight: 650; padding: 11px 13px; border-radius: 8px; }
.tp-nav-menu > summary:hover, .tp-nav-menu[open] > summary { background: #edf3ff; }
.tp-menu-list { position: absolute; top: calc(100% + 9px); min-width: 210px; padding: 7px; background: #fff; border: 1px solid #e3e9f2; border-radius: 11px; box-shadow: 0 12px 30px rgba(25,40,65,.13); z-index: 50; }
.tp-nav-menu .tp-menu-list { left: 0; }
.tp-profile-menu .tp-menu-list { right: 0; min-width: 175px; }
.tp-menu-list a, #user-tools .tp-menu-list button { display: block; width: 100%; box-sizing: border-box; color: #526071; text-align: left; border: 0; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 650; padding: 9px 11px; white-space: nowrap; }
.tp-menu-list a:hover, #user-tools .tp-menu-list button:hover { background: #edf3ff; color: #376dff; }
#user-tools .tp-menu-list form { margin: 0; }

div.breadcrumbs, nav[aria-label="Breadcrumbs"] { background: transparent; color: #8995a5; padding: 17px 32px 0; font-size: 12px; }
div.breadcrumbs a { color: #657287; }
.main { min-height: calc(100vh - 72px); }
#nav-sidebar { background: #fff; border-right: 1px solid #e8ecf3; width: 240px; flex: 0 0 240px; padding: 18px 12px; box-sizing: border-box; }
#nav-sidebar .module { background: transparent; }
#nav-sidebar caption { background: transparent; color: #8995a5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; padding: 10px 12px; }
#nav-sidebar a { color: #536074; text-decoration: none; display: block; border-radius: 8px; padding: 9px 12px; font-weight: 600; font-size: 13px; }
#nav-sidebar a:hover, #nav-sidebar .current-model a, #nav-sidebar .current-app .section { color: #376dff; background: #edf3ff; }
#nav-sidebar .addlink, #nav-sidebar .changelink { display: none; }
#nav-filter { border-radius: 8px; border: 1px solid #e4e9f1; padding: 9px 11px; background: #f8faff; }
main.content { min-width: 0; padding: 0; }
#content { padding: 28px 32px 42px; max-width: 1600px; }
body.change-list #content { max-width: none; box-sizing: border-box; }
body.dashboard #content { width: 100%; max-width: none; box-sizing: border-box; }
body.dashboard #content-main { width: 100%; max-width: none; float: none; }
#content h1 { color: #1d2630; font-weight: 720; font-size: 24px; letter-spacing: -.03em; margin: 0 0 22px; }
#content h2 { color: #1d2630; }
.tp-page-heading { margin-bottom: 25px; }
.tp-page-heading h1 { margin: 4px 0 6px !important; font-size: 27px !important; }
.tp-page-heading p { color: #7c8796; margin: 0; font-size: 13px; }
.tp-eyebrow { color: #4680ff; text-transform: uppercase; font-weight: 750; letter-spacing: .12em; font-size: 10px; }

.tp-button, input[type=submit], .submit-row input, .button, a.button {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 1px solid #4680ff; border-radius: 9px; background: #4680ff; color: #fff !important;
  font-size: 13px; font-weight: 700; line-height: 1.2; padding: 11px 16px;
  text-decoration: none; cursor: pointer; box-shadow: none;
}
.tp-button:hover, input[type=submit]:hover, .submit-row input:hover, .button:hover, a.button:hover { background: #376dff; border-color: #376dff; }
input, select, textarea { border-radius: 8px !important; border: 1px solid #dfe5ef !important; background: #fff; color: #253142; }
input:focus, select:focus, textarea:focus { border-color: #4680ff !important; box-shadow: 0 0 0 3px rgba(70,128,255,.12); outline: none; }
input[type=checkbox] { accent-color: #4680ff; }

.tp-notice { display: flex; align-items: center; gap: 15px; padding: 18px 20px; border: 1px solid #ffdca3; background: #fff9ee; border-radius: 12px; margin: 0 0 24px; }
.tp-notice-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #faad14; color: #fff; font-weight: 800; flex: 0 0 auto; }
.tp-notice strong { color: #6e4c11; display: block; font-size: 13px; }
.tp-notice p { color: #8a6d3d; font-size: 12px; margin: 3px 0 0; }
.tp-notice .tp-button { margin-left: auto; flex: 0 0 auto; }
.tp-date-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; padding: 17px 20px; margin: 0 0 18px; }
.tp-date-filter > div { display: flex; flex-direction: column; gap: 3px; margin-right: auto; }
.tp-date-filter strong { color: #253142; font-size: 13px; }
.tp-date-filter small { color: #8995a5; font-size: 11px; }
.tp-date-filter label { display: flex; flex-direction: column; gap: 5px; color: #657287; font-size: 11px; font-weight: 700; }
.tp-date-filter input[type=date] { min-height: 36px; padding: 7px 10px; box-sizing: border-box; }
.tp-date-filter select { min-height: 36px; min-width: 165px; padding: 7px 10px; box-sizing: border-box; }
.tp-date-filter .tp-button { min-height: 36px; }
.tp-period-presets { flex: 0 0 100%; display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 7px !important; margin: 2px 0 0 !important; }
.tp-period-presets button { border: 1px solid #dfe6f2; border-radius: 7px; background: #fff; color: #617087; padding: 8px 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.tp-period-presets button:hover, .tp-period-presets button.is-active { background: #edf3ff; border-color: #bcd0ff; color: #376dff; }
.tp-reset-link { min-height: 36px; display: inline-flex; align-items: center; color: #376dff; font-size: 12px; font-weight: 700; text-decoration: none; padding: 0 5px; }
.tp-date-error { margin: -6px 0 17px; color: #b84747; font-size: 12px; }
.tp-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-bottom: 20px; }
.tp-stat, .tp-panel { background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; box-shadow: 0 2px 12px rgba(29,38,48,.025); }
.tp-stat { padding: 21px 22px; display: flex; flex-direction: column; gap: 9px; text-decoration: none; }
.tp-stat:hover { border-color: #c8d9ff; box-shadow: 0 7px 22px rgba(70,128,255,.09); }
.tp-stat span { color: #748095; font-weight: 600; font-size: 12px; }
.tp-stat strong { color: #1d2630; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.tp-stat small { color: #94a0ae; font-size: 11px; }
.tp-chart-card { background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; box-shadow: 0 2px 12px rgba(29,38,48,.025); padding: 23px 25px 14px; }
.tp-chart-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; }
.tp-chart-heading h2 { font-size: 16px; margin: 0 0 5px; }
.tp-chart-heading p { color: #8995a5; font-size: 11px; margin: 0; }
.tp-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: #657287; font-size: 11px; font-weight: 650; }
.tp-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tp-chart-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: #9aa7b6; }
.tp-chart-legend .tp-legend-lead::before { background: #4680ff; }
.tp-chart-legend .tp-legend-sale::before { background: #39b980; }
.tp-chart-legend .tp-legend-qual::before { background: #e7a341; }
.tp-chart-legend .tp-legend-prequal::before { background: #64b6c9; }
.tp-chart-legend .tp-legend-redep::before { background: #9b77d8; }
.tp-chart-scroll { width: 100%; overflow-x: auto; }
.tp-hour-chart { display: block; width: 100%; min-width: 780px; height: auto; margin: 9px 0 0; }
.tp-chart-grid { stroke: #edf1f6; stroke-dasharray: 4 5; }
.tp-chart-axis { stroke: #dfe5ee; }
.tp-chart-tick { fill: #94a0ae; font-size: 10px; font-family: Inter, sans-serif; }
.tp-chart-lead { fill: #4680ff; }
.tp-chart-sale { fill: #39b980; }
.tp-chart-qual { fill: #e7a341; }
.tp-chart-prequal { fill: #64b6c9; }
.tp-chart-redep { fill: #9b77d8; }
.tp-chart-other { fill: #9aa7b6; }
.tp-chart-column { cursor: pointer; }
.tp-chart-column:hover rect, .tp-chart-column:focus rect { filter: brightness(.9); }
.tp-chart-column:focus { outline: none; }
.tp-chart-tooltip { position: fixed; z-index: 1000; pointer-events: none; width: 205px; box-sizing: border-box; padding: 12px 14px; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(32,50,82,.18); color: #536074; font-size: 11px; }
.tp-chart-tooltip[hidden] { display: none; }
.tp-chart-tooltip-hour { display: block; color: #253142; font-size: 13px; }
.tp-chart-tooltip-total { display: block; margin: 2px 0 9px; color: #748095; }
.tp-chart-tooltip-values { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.tp-chart-tooltip-values span { display: flex; justify-content: space-between; gap: 7px; }
.tp-chart-tooltip-values b { color: #253142; }
.tp-chart-empty { text-align: center; color: #8995a5; font-size: 12px; margin: -5px 0 15px; }
.tp-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.tp-panel { padding: 25px; }
.tp-panel-icon { background: #edf3ff; color: #4680ff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-size: 20px; }
.tp-panel h2 { font-size: 16px; margin: 17px 0 8px; }
.tp-panel p { color: #748095; line-height: 1.65; min-height: 48px; margin: 0 0 19px; font-size: 12px; }
.tp-panel code { background: #f0f4f9; border-radius: 4px; padding: 2px 4px; color: #526071; }
.tp-text-link { font-size: 12px; font-weight: 750; text-decoration: none; }
.tp-text-link span { margin-left: 5px; }

.module, #changelist, .inline-group, .submit-row, #content-related .module { border: 1px solid #e8ecf3; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(29,38,48,.025); overflow: hidden; }
.module h2, .module caption, .inline-group h2 { background: #fff; color: #253142; border-bottom: 1px solid #edf0f5; padding: 14px 17px; font-weight: 700; font-size: 13px; }
.module table { border-collapse: collapse; }
.module table th, .module table td { padding: 12px 14px; }
.module table tbody tr:hover { background: #f8faff; }
.object-tools a { border-radius: 8px; background: #4680ff; font-size: 12px; font-weight: 700; padding: 10px 14px; }
.object-tools a:hover { background: #376dff; }

#changelist { display: flex; overflow: visible; }
#changelist .changelist-form-container { min-width: 0; flex: 1; }
#changelist-filter { background: #fff; border-left: 1px solid #e8ecf3; border-radius: 0 12px 12px 0; width: 235px; padding: 17px 14px; box-sizing: border-box; }
#changelist-filter h2 { background: transparent; color: #1d2630; padding: 2px 7px 14px; margin: 0; font-size: 13px; font-weight: 750; }
#changelist-filter h3 { color: #8995a5; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; padding: 18px 8px 7px; }
#changelist-filter li { border-radius: 7px; padding: 0; }
#changelist-filter li a { display: block; padding: 6px 8px; color: #657287; font-size: 12px; }
#changelist-filter li.selected a, #changelist-filter li a:hover { background: #edf3ff; color: #376dff; border-radius: 7px; }
#changelist-filter .tp-text-filter { padding: 4px 8px 13px; display: flex; gap: 6px; flex-wrap: wrap; }
#changelist-filter .tp-text-filter input[type=search] { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #dce5f4; border-radius: 7px; background: #fff; color: #263447; font-size: 12px; }
#changelist-filter .tp-text-filter button { border: 0; border-radius: 7px; padding: 7px 11px; background: #4680ff; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
#changelist-filter-extra-actions a { font-size: 11px; }
#changelist-search { padding: 17px 19px; border-bottom: 1px solid #edf0f5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#changelist-search > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; }
#changelist-search label { display: none; }
#changelist-search input[type=text] { min-width: 270px; width: min(500px, 55vw); min-height: 37px; padding: 8px 12px; }
#changelist-search input[type=submit] { min-height: 37px; padding: 8px 17px; background-color: #4680ff !important; background-image: none !important; border-color: #4680ff !important; color: #fff !important; }
#changelist-search input[type=text] { background: #fff; }
#changelist-search .small { color: #8995a5; font-size: 11px; }
.tp-quick-links { display: flex; flex-wrap: wrap; gap: 7px; padding: 17px 19px 0; }
.tp-quick-links a { color: #607087; text-decoration: none; border: 1px solid #e2e8f1; background: #fff; padding: 7px 11px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.tp-quick-links a:hover { border-color: #a3c0ff; color: #376dff; background: #edf3ff; }
.model-event .tp-log-toolbar { display: flex; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid #edf0f5; }
.model-event .tp-log-toolbar .tp-quick-links { padding: 0; flex: 1; }
.model-event .tp-log-date-filter { border: 0; border-bottom: 1px solid #edf0f5; border-radius: 0; box-shadow: none; margin: 0; padding: 16px 19px; }
.model-event .tp-log-date-filter > div:first-child { margin-right: 10px; }
.model-event .tp-log-date-error { margin: 0; padding: 10px 19px; }
.model-event .tp-log-filter-menu { position: relative; flex: 0 0 auto; }
.model-event .tp-log-filter-menu > summary { list-style: none; cursor: pointer; border: 1px solid #cbd9f2; border-radius: 8px; background: #f5f8ff; color: #376dff; padding: 9px 12px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.model-event .tp-log-filter-menu > summary::-webkit-details-marker { display: none; }
.model-event .tp-log-filter-menu > summary span { margin-left: 6px; }
.model-event .tp-log-filter-menu[open] > summary { background: #e9f0ff; }
.model-event #changelist-filter { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; flex: none; width: min(810px, calc(100vw - 90px)); max-height: min(70vh, 720px); overflow-y: auto; margin: 0; padding: 17px; border: 1px solid #dfe6f2; border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(32,50,82,.16); }
.model-event .tp-log-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 3px 14px; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.model-event .tp-log-filter-heading a { font-size: 11px; font-weight: 700; }
.model-event .tp-log-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-top: 13px; }
.model-event #changelist-filter .tp-log-filter-grid > details { min-width: 0; border: 1px solid #e7ecf5; border-radius: 9px; padding: 8px; }
.model-event #changelist-filter .tp-log-filter-grid > details > summary { font-size: 11px; font-weight: 750; color: #526071; padding: 4px 6px 10px; }
.model-event #changelist-filter .tp-log-filter-grid ul { max-height: 180px; overflow-y: auto; margin: 0; padding: 0; }
.model-event #changelist-filter .tp-log-filter-grid li a { font-size: 11px; }
.model-event #changelist-filter .tp-text-filter { padding: 3px 6px 6px; }
.model-event #changelist { display: block; }
.model-event #changelist .changelist-form-container { width: 100%; }
#changelist-form .results { overflow-x: auto; }
#result_list { width: 100%; }
#result_list thead th { background: #f9fbfe; color: #7c8796; border-bottom: 1px solid #e8ecf3; padding: 12px 10px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
#result_list thead th a { color: #6f7b8d; }
#result_list tbody tr { border-bottom: 1px solid #eef1f5; }
#result_list tbody tr:hover { background: #f8faff; }
#result_list tbody td, #result_list tbody th { padding: 12px 10px; font-size: 12px; color: #536074; vertical-align: middle; border-bottom: 1px solid #eef1f5; }
#result_list tbody th a { color: #376dff; font-weight: 700; }
.tp-received-url { display: block; min-width: 280px; max-width: 540px; color: #40536d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; user-select: text; }
.tp-badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 750; letter-spacing: .015em; }
.tp-badge-success { color: #21865e; background: #e8f7ef; }
.tp-badge-warning { color: #af6b0b; background: #fff3df; }
.tp-badge-danger { color: #c24747; background: #feeeee; }
.tp-badge-info { color: #376dff; background: #e9f0ff; }
.tp-badge-muted { color: #67778b; background: #eef1f5; }
.tp-badge-lead { color: #376dff; background: #e9f0ff; }
.tp-badge-sale { color: #21865e; background: #e8f7ef; }
.tp-badge-redep { color: #7b5bc2; background: #f1ecff; }
.tp-badge-qual { color: #9b6508; background: #fff2d9; }
.tp-badge-prequal { color: #207589; background: #e3f5f8; }
.paginator { background: #fff; border-top: 1px solid #edf0f5; padding: 16px 19px !important; color: #718095; }
.paginator a { border-radius: 6px; border-color: #dfe5ef; }
.actions { background: #fff; border-bottom: 1px solid #edf0f5; padding: 12px 19px; }
.actions select { padding: 7px 9px; }
.actions button { border-radius: 7px; padding: 7px 13px; }

.form-row { border-bottom: 1px solid #edf0f5; padding: 15px 18px; }
.form-row label { color: #526071; font-size: 12px; font-weight: 650; }
.help, .form-row .help { color: #8995a5; font-size: 11px; }
.submit-row { padding: 16px 18px; }
.aligned .form-row input[type=text], .aligned .form-row input[type=url] { min-width: min(500px, 70vw); padding: 9px 11px; }
.errornote, .messagelist li { border-radius: 9px; border: 1px solid #e8ecf3; }

body.login #header { justify-content: center; background: transparent; box-shadow: none; padding-top: 34px; }
body.login #header .tp-brand { display: none; }
body.login #container { min-width: 0; }
body.login .main { min-height: auto; }
body.login #content { max-width: none; padding: 55px 18px; }
.tp-login-wrap { display: flex; justify-content: center; }
.tp-login-card { width: min(420px, 100%); background: #fff; border: 1px solid #e8ecf3; border-radius: 18px; box-shadow: 0 14px 42px rgba(29,38,48,.08); padding: 35px 38px 39px; }
.tp-login-mark { width: 46px; height: 46px; border-radius: 13px; font-size: 29px; margin-bottom: 21px; }
.tp-login-card h1 { font-size: 27px !important; margin: 8px 0 7px !important; }
.tp-login-intro { color: #7c8796; line-height: 1.55; margin: 0 0 25px; font-size: 12px; }
.tp-login-card form { display: flex; flex-direction: column; }
.tp-profile-card { max-width: 580px; background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; padding: 25px; box-shadow: 0 2px 12px rgba(29,38,48,.025); }
.tp-profile-card form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tp-profile-card label { color: #526071; font-size: 12px; font-weight: 700; }
.tp-profile-card select { width: 100%; min-height: 40px; padding: 8px 10px; }
.tp-profile-card p { color: #8995a5; font-size: 12px; margin: 0 0 8px; }
.tp-login-card label { color: #465467; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.tp-login-card input { box-sizing: border-box; width: 100%; min-height: 43px; padding: 10px 12px; margin: 0 0 19px; font-size: 13px; }
.tp-login-submit { width: 100%; min-height: 43px; margin-top: 5px; }
.tp-form-error { background: #fff1f1; border: 1px solid #ffdada; color: #b83c3c; padding: 11px 13px; border-radius: 8px; margin-bottom: 18px; font-size: 12px; }

@media (max-width: 1100px) {
  .tp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #header { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; padding: 14px 20px; }
  .tp-topnav { order: 3; width: 100%; margin-left: 0; }
  #user-tools { order: 2; margin-left: auto; }
  #content { padding: 24px 20px 35px; }
}
@media (max-width: 760px) {
  #nav-sidebar { display: none; }
  .tp-dashboard-grid { grid-template-columns: 1fr; }
  .tp-notice { align-items: flex-start; flex-wrap: wrap; }
  .tp-notice .tp-button { margin-left: 47px; }
  #changelist { flex-direction: column; }
  #changelist-filter { width: 100%; border-left: 0; border-top: 1px solid #e8ecf3; border-radius: 0 0 12px 12px; }
  #changelist-filter ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .model-event .tp-log-toolbar { flex-wrap: wrap; }
  .model-event .tp-log-filter-menu { margin-left: auto; }
  .model-event #changelist-filter { width: min(620px, calc(100vw - 48px)); }
  .model-event .tp-log-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content { padding: 20px 14px 30px; }
  .tp-login-card { padding: 28px 24px 32px; }
}
@media (max-width: 540px) {
  .model-event .tp-log-filter-grid { grid-template-columns: 1fr; }
  .tp-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .tp-stat { padding: 15px; }
  .tp-stat strong { font-size: 24px; }
  .tp-stat small { display: none; }
  .tp-topnav { overflow-x: auto; white-space: nowrap; }
  .tp-topnav a { padding: 8px 9px; font-size: 11px; }
  #user-tools .tp-user { display: flex; }
  #changelist-search input[type=text] { width: 100%; min-width: 0; }
}
