:root {
  color-scheme: light;
  --ink: #172b3c;
  --muted: #75838f;
  --line: #e8edf0;
  --surface: #ffffff;
  --canvas: #f5f7f8;
  --teal: #155c61;
  --teal-dark: #10474d;
  --teal-soft: #e8f2f1;
  --orange: #e49255;
  --orange-soft: #fff1e5;
  --green: #318366;
  --green-soft: #e7f4ef;
  --blue: #457aa4;
  --blue-soft: #eaf2f9;
  --red: #b75048;
  --red-soft: #fbece9;
  --shadow: 0 10px 28px rgba(23, 43, 60, .045);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden; background: #f6f7f3; }
.login-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 2%, rgba(226, 152, 94, .12), transparent 36%), radial-gradient(ellipse at 90% 85%, rgba(21, 92, 97, .08), transparent 35%); pointer-events: none; }
.login-decoration { position: absolute; border: 1px solid rgba(21, 92, 97, .1); border-radius: 50%; pointer-events: none; }
.login-decoration-one { width: 440px; height: 440px; top: -280px; right: -40px; }
.login-decoration-two { width: 600px; height: 600px; bottom: -500px; left: -160px; }
.login-card { width: min(100%, 444px); background: rgba(255,255,255,.93); border: 1px solid rgba(226,231,232,.85); border-radius: 22px; padding: 36px 40px 28px; box-shadow: 0 28px 85px rgba(30,49,57,.095); position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; position: relative; display: grid; place-items: center; color: #fff; background: var(--teal); font: 800 21px 'Manrope', sans-serif; overflow: hidden; }
.brand-mark span { position: relative; z-index: 1; }
.brand-mark i { position: absolute; width: 26px; height: 26px; right: -10px; bottom: -12px; border-radius: 50%; background: var(--orange); }
.brand-lockup strong, .brand-lockup span { display: block; line-height: 1.25; }
.brand-lockup strong { font: 800 11px 'Manrope', sans-serif; letter-spacing: .12em; }
.brand-lockup span { margin-top: 4px; color: #8c989e; font: 700 9px 'DM Sans', sans-serif; letter-spacing: .18em; }
.login-heading { margin: 47px 0 28px; }
.eyebrow { color: #b17a4f; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.login-heading h1, .page-heading h1 { margin: 10px 0 8px; font: 700 27px/1.2 'Manrope', sans-serif; letter-spacing: -.04em; }
.login-heading p, .page-heading p, .dialog-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, .filter-field > span { color: #465967; font-size: 11px; font-weight: 700; }
.field > span i { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea, .filter-field input, .filter-field select { width: 100%; border: 1px solid #e2e8ea; outline: none; border-radius: 9px; background: #fff; color: var(--ink); min-height: 42px; padding: 10px 12px; font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: #a5b0b7; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus { border-color: #5b9797; box-shadow: 0 0 0 3px rgba(21,92,97,.1); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible { outline: 3px solid rgba(21,92,97,.25); outline-offset: 2px; }
.button-primary { background: var(--teal); color: #fff; box-shadow: 0 5px 12px rgba(21,92,97,.12); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 7px 15px rgba(21,92,97,.18); }
.button-secondary { border-color: #dfe6e8; background: #fff; color: #354956; }
.button-secondary:hover { background: #f7f9f9; }
.button-wide { width: 100%; min-height: 46px; }
.button-filter { min-height: 37px; background: #f1f5f5; color: #315960; border-color: #e4eceb; align-self: end; white-space: nowrap; }
.button-filter:hover { background: #e7f0ef; }
.button-link { background: transparent; color: var(--teal); padding-inline: 8px; }
.plus { font-size: 18px; font-weight: 400; line-height: 0; }
.form-error { margin: 0; color: var(--red); font-size: 12px; line-height: 1.5; }
.login-footnote { margin: 25px 0 0; display: flex; gap: 8px; align-items: center; justify-content: center; color: #87949a; font-size: 10px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ca280; box-shadow: 0 0 0 3px #e6f2ea; }
.login-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #a5adae; font-size: 11px; letter-spacing: .03em; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 238px; padding: 28px 18px 20px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-brand { padding: 0 9px 33px; }
.nav-caption { padding: 0 12px 11px; color: #a5b0b4; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #71808a; text-align: left; font-size: 12px; font-weight: 600; }
.nav-item:hover { background: #f6f8f8; color: var(--ink); }
.nav-item.active { color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.nav-icon { width: 20px; text-align: center; font-size: 17px; line-height: 1; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { padding: 14px 13px; border: 1px solid #eee9e1; border-radius: 11px; background: #fcfaf7; }
.note-icon { color: var(--orange); font-size: 15px; }
.sidebar-note p { margin: 6px 0 0; color: #879198; font-size: 10px; line-height: 1.5; }
.sidebar-footer { margin: 20px 8px 0; color: #adb6b9; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.sidebar-footer span { margin: 0 5px; color: var(--orange); }
.main-column { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; z-index: 12; top: 0; display: flex; height: 70px; align-items: center; padding: 0 clamp(22px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(16px); }
.topbar-spacer { flex: 1; }
.current-date { color: #71808a; font-size: 11px; }
.topbar-divider { width: 1px; height: 28px; margin: 0 22px; background: var(--line); }
.user-menu { display: flex; gap: 10px; align-items: center; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f5e8db; color: #a7673b; font: 700 13px 'Manrope', sans-serif; }
.user-meta strong, .user-meta span { display: block; }
.user-meta strong { max-width: 170px; overflow: hidden; color: #344652; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { margin-top: 3px; color: #9aa5aa; font-size: 9px; }
.icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #87959c; font-size: 19px; }
.icon-button:hover { border-color: var(--line); background: #f7f9f9; color: var(--ink); }
.logout-button { margin-left: 4px; transform: rotate(45deg); font-size: 17px; }
.workspace { width: min(100%, 1530px); margin: 0 auto; padding: 35px clamp(22px, 4vw, 56px) 34px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin-top: 8px; margin-bottom: 6px; font-size: 25px; }
.page-heading p { font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.summary-card { position: relative; min-height: 104px; display: flex; align-items: center; gap: 12px; padding: 18px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.summary-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 17px; }
.summary-duration .summary-icon { color: #b67641; background: var(--orange-soft); }
.summary-done .summary-icon { color: var(--green); background: var(--green-soft); }
.summary-progress .summary-icon { color: var(--blue); background: var(--blue-soft); }
.summary-copy { min-width: 0; }
.summary-copy span { display: block; color: #7f8c94; font-size: 10px; font-weight: 500; white-space: nowrap; }
.summary-copy strong { display: block; margin-top: 7px; color: #203747; font: 700 22px/1 'Manrope', sans-serif; letter-spacing: -.04em; }
.summary-mark { position: absolute; top: 13px; right: 15px; color: #c7d7d5; font-size: 14px; }
.content-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.activity-card { overflow: hidden; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px 16px; }
.list-heading h2, .team-create-card h2 { margin: 0; font: 700 14px 'Manrope', sans-serif; letter-spacing: -.02em; }
.list-heading p, .team-create-card p { margin: 5px 0 0; color: #92a0a6; font-size: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 0 22px 17px; border-bottom: 1px solid var(--line); }
.filter-field { display: grid; gap: 6px; min-width: 137px; }
.filter-field > span { color: #87959c; font-size: 9px; }
.filter-field input, .filter-field select { min-height: 36px; padding: 7px 9px; border-radius: 8px; font-size: 11px; }
.filter-status { min-width: 145px; }
.table-wrap { width: 100%; overflow: auto; }
.activity-table, .admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.activity-table { min-width: 1000px; }
.activity-table th, .admin-table th { padding: 11px 13px; border-bottom: 1px solid #edf0f1; background: #fbfcfc; color: #9aa5ab; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.activity-table th:first-child, .activity-table td:first-child, .admin-table th:first-child, .admin-table td:first-child { padding-left: 22px; }
.activity-table td, .admin-table td { padding: 12px 13px; border-bottom: 1px solid #f0f2f3; color: #52636d; font-size: 10px; vertical-align: middle; }
.activity-table tr:last-child td, .admin-table tr:last-child td { border-bottom: 0; }
.activity-table td.activity-name { max-width: 225px; color: #314652; font-weight: 600; line-height: 1.45; }
.activity-table td.notes-cell { max-width: 175px; color: #89979d; }
.cell-date, .cell-duration { white-space: nowrap; }
.user-cell strong, .user-cell span { display: block; }
.user-cell strong { color: #405661; font-size: 10px; }
.user-cell span { margin-top: 3px; color: #a0aaaf; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-selesai { background: var(--green-soft); color: var(--green); }
.status-berjalan { background: var(--blue-soft); color: var(--blue); }
.status-tertunda { background: var(--red-soft); color: var(--red); }
.status-belum-dimulai { background: #f0f1f2; color: #7e898e; }
.row-actions { display: flex; justify-content: end; gap: 4px; }
.row-action { border: 0; border-radius: 6px; padding: 5px 7px; background: transparent; color: #71848d; font-size: 10px; }
.row-action:hover { color: var(--teal); background: #edf5f4; }
.row-action.danger:hover { color: var(--red); background: var(--red-soft); }
.empty-state { display: grid; justify-items: center; padding: 42px 20px; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #f1f5f4; color: #7d9c9b; font-size: 18px; }
.empty-state strong { margin-top: 11px; color: #4d606a; font: 700 12px 'Manrope', sans-serif; }
.empty-state p { margin: 5px 0 0; color: #a0aaaf; font-size: 10px; }
.activity-cards { display: none; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 22px; border-top: 1px solid #f0f2f3; color: #99a4a9; font-size: 9px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 15px 2px 0; color: #97a2a7; font-size: 9px; }
.privacy-note > span:first-child { font-size: 11px; }

.admin-list-card { overflow: hidden; }
.users-cards { display: none; }
.count-pill { padding: 6px 10px; border-radius: 20px; background: #f1f5f4; color: var(--teal); font-size: 9px; font-weight: 700; white-space: nowrap; }
.admin-table { min-width: 700px; }
.role-label { font-size: 10px; font-weight: 700; color: #526c75; }
.account-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }
.account-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6eb18e; }
.account-status.inactive { color: #929da2; }
.account-status.inactive::before { background: #abb3b7; }
.account-status.active { color: #4c8b6c; }
.account-actions { display: flex; justify-content: end; gap: 5px; white-space: nowrap; }
.account-actions .row-action { font-size: 9px; }
.team-create-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; margin-bottom: 16px; }
.team-form { display: flex; align-items: end; gap: 9px; width: min(100%, 440px); }
.team-form .field { flex: 1; }
.team-form .field > span { font-size: 10px; }
.team-form .field input { min-height: 39px; }
.team-form .button { min-height: 39px; white-space: nowrap; }
.teams-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.team-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.team-card-top { display: flex; align-items: center; justify-content: space-between; }
.team-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #f4eee7; color: #b67a4a; font-size: 17px; }
.team-card h3 { margin: 13px 0 5px; font: 700 13px 'Manrope', sans-serif; }
.team-card p { margin: 0; color: #919da3; font-size: 10px; }
.team-stats { display: flex; gap: 7px; margin-top: 16px; }
.team-stat { flex: 1; padding: 8px 9px; border-radius: 8px; background: #f7f9f9; }
.team-stat strong, .team-stat span { display: block; }
.team-stat strong { color: #405761; font: 700 13px 'Manrope', sans-serif; }
.team-stat span { margin-top: 3px; color: #98a3a8; font-size: 8px; }
.standalone-empty { border: 1px dashed #dce4e5; border-radius: 12px; background: rgba(255,255,255,.5); }

.modal-dialog { width: min(620px, calc(100vw - 28px)); max-height: min(90vh, 820px); padding: 0; border: 1px solid #e5e9ea; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 25px 90px rgba(20,40,52,.22); }
.modal-dialog::backdrop { background: rgba(20,35,43,.42); backdrop-filter: blur(3px); }
.modal-form { padding: 27px 29px 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 7px 0 5px; font: 700 20px 'Manrope', sans-serif; letter-spacing: -.03em; }
.dialog-heading p { max-width: 420px; font-size: 11px; }
.close-dialog { flex: 0 0 32px; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.field-full { grid-column: 1 / -1; }
.duration-input { display: flex; align-items: center; gap: 6px; }
.duration-input input { min-width: 0; width: 62px; text-align: center; padding: 9px 5px; }
.duration-input span { color: #89969c; font-size: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eff1f2; }
.field small { color: #98a3a8; font-size: 9px; }
.check-field { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 42px; color: #52636d; font-size: 11px; font-weight: 600; }
.check-field input { width: 16px; height: 16px; accent-color: var(--teal); }
.password-dialog { width: min(440px, calc(100vw - 28px)); }
.password-emblem, .credential-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 17px; border-radius: 12px; background: var(--orange-soft); color: #b87943; font-size: 18px; }
.password-heading { margin-bottom: 22px; }
.password-dialog .modal-form { display: grid; gap: 15px; }
.password-dialog .dialog-heading { margin-bottom: 0; }
.credential-dialog { width: min(470px, calc(100vw - 28px)); }
.credential-icon { background: var(--green-soft); color: var(--green); }
.credential-dialog .modal-form { display: grid; gap: 15px; }
.credential-dialog .dialog-heading { margin-bottom: 0; }
.copy-field { display: flex; gap: 7px; }
.copy-field input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.copy-field .button { flex: 0 0 auto; min-width: 65px; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(360px, calc(100vw - 30px)); }
.toast { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border: 1px solid #dfe9e5; border-radius: 11px; background: #fff; box-shadow: 0 12px 34px rgba(23,43,60,.13); color: #456356; font-size: 11px; animation: toast-in .2s ease-out; }
.toast::before { content: '✓'; display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; }
.toast.error { border-color: #f0d8d4; color: #9b4d47; }
.toast.error::before { content: '!'; background: var(--red-soft); color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.mobile-brand, .mobile-nav { display: none; }

@media (min-width: 1500px) {
  .workspace { padding-top: 43px; }
  .summary-card { min-height: 114px; padding-inline: 21px; }
  .summary-copy span { font-size: 11px; }
  .summary-copy strong { font-size: 24px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 215px; }
  .main-column { margin-left: 215px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .teams-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-bar { gap: 9px; }
  .filter-field { min-width: 125px; flex: 1 1 135px; }
  .button-filter { flex: 1 1 120px; }
}
@media (max-width: 760px) {
  body { background: #f5f7f8; }
  .login-card { padding: 29px 25px 24px; border-radius: 18px; }
  .login-heading { margin-top: 39px; }
  .login-heading h1 { font-size: 23px; }
  .login-caption { bottom: 13px; font-size: 10px; }
  .sidebar { display: none; }
  .main-column { margin-left: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { height: 60px; padding: 0 15px; }
  .mobile-brand { display: flex; gap: 8px; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
  .mobile-brand strong { font-size: 9px; }
  .mobile-brand span { font-size: 8px; }
  .current-date, .topbar-divider { display: none; }
  .user-menu { gap: 7px; }
  .avatar { width: 30px; height: 30px; font-size: 11px; }
  .user-meta strong { max-width: 105px; font-size: 10px; }
  .user-meta span { font-size: 8px; }
  .logout-button { width: 29px; height: 29px; margin-left: 0; }
  .workspace { padding: 23px 14px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 19px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { max-width: 250px; font-size: 10px; }
  #new-activity-button, #new-user-button { min-height: 37px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
  .summary-grid { gap: 9px; margin-bottom: 15px; }
  .summary-card { min-height: 80px; gap: 9px; padding: 12px 11px; border-radius: 11px; }
  .summary-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 14px; }
  .summary-copy span { font-size: 8px; }
  .summary-copy strong { margin-top: 5px; font-size: 19px; }
  .summary-mark { top: 9px; right: 10px; font-size: 11px; }
  .content-card { border-radius: 11px; }
  .list-heading { align-items: flex-start; gap: 10px; padding: 15px 14px 13px; }
  .list-heading h2 { font-size: 12px; }
  .list-heading p { max-width: 180px; font-size: 9px; line-height: 1.5; }
  #export-button { min-height: 34px; padding: 0 9px; gap: 5px; font-size: 9px; white-space: nowrap; }
  .filter-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 14px 13px; }
  .filter-field { min-width: 0; }
  .filter-field > span { font-size: 8px; }
  .filter-field input, .filter-field select { min-height: 36px; padding: 7px 8px; font-size: 10px; }
  .button-filter { grid-column: 1 / -1; width: 100%; min-height: 36px; }
  .table-wrap { display: none; }
  .activity-cards { display: grid; gap: 9px; padding: 12px; }
  .activity-card-item { padding: 12px; border: 1px solid #edf0f0; border-radius: 10px; background: #fff; }
  .activity-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .activity-card-top time { color: #88969c; font-size: 9px; }
  .activity-card-item h3 { margin: 10px 0 6px; color: #324b59; font: 700 12px/1.45 'Manrope', sans-serif; }
  .activity-card-subtitle { margin: 0; color: #71828b; font-size: 10px; line-height: 1.5; }
  .activity-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; color: #97a2a7; font-size: 9px; }
  .activity-card-notes { margin-top: 8px; padding: 8px; border-radius: 7px; background: #f8f9f9; color: #849198; font-size: 9px; line-height: 1.5; }
  .activity-card-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; border-top: 1px solid #f0f2f3; padding-top: 6px; }
  .pagination-row { min-height: 43px; padding: 0 13px; font-size: 8px; }
  .button-link { min-height: 34px; font-size: 9px; }
  .privacy-note { align-items: flex-start; font-size: 8px; line-height: 1.5; }
  .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 6px 15px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #e8edee; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
  .mobile-nav-item { display: grid; min-width: 70px; min-height: 48px; justify-items: center; align-content: center; gap: 3px; border: 0; border-radius: 10px; background: transparent; color: #98a4a8; }
  .mobile-nav-item span { font-size: 16px; line-height: 1; }
  .mobile-nav-item small { font-size: 8px; font-weight: 600; }
  .mobile-nav-item.active { color: var(--teal); background: #edf5f4; }
  .team-create-card { display: block; padding: 15px; }
  .team-form { width: 100%; margin-top: 14px; }
  .team-form .button { padding-inline: 10px; font-size: 10px; }
  .teams-grid { grid-template-columns: 1fr; gap: 9px; }
  .team-card { padding: 14px; }
  .admin-list-card .list-heading { align-items: center; }
  .count-pill { font-size: 8px; }
  .admin-list-card > .table-wrap { display: none; }
  .users-cards { display: grid; gap: 9px; padding: 0 12px 12px; }
  .user-mobile-card { padding: 12px; border: 1px solid #edf0f0; border-radius: 10px; background: #fff; }
  .user-mobile-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .user-mobile-top strong, .user-mobile-top span { display: block; }
  .user-mobile-top strong { color: #344d5a; font-size: 11px; }
  .user-mobile-top span { margin-top: 4px; color: #95a0a5; font-size: 9px; overflow-wrap: anywhere; }
  .user-mobile-top .account-status { display: inline-flex; flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
  .user-mobile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: #74858d; font-size: 9px; }
  .user-mobile-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; padding-top: 7px; border-top: 1px solid #f0f2f3; }
  .modal-dialog { width: min(100vw - 18px, 620px); max-height: calc(100dvh - 22px); border-radius: 14px; }
  .modal-form { padding: 22px 18px 18px; }
  .dialog-heading h2 { font-size: 18px; }
  .form-grid { gap: 12px; }
  .field > span { font-size: 10px; }
  .field input, .field select, .field textarea { min-height: 40px; padding: 9px 10px; font-size: 12px; }
  .duration-input { gap: 4px; }
  .duration-input input { width: 49px; }
  .duration-input span { font-size: 9px; }
  .dialog-actions .button { min-height: 38px; font-size: 10px; }
}
@media (max-width: 390px) {
  .workspace { padding-inline: 10px; }
  .topbar { padding-inline: 10px; }
  .user-meta strong { max-width: 80px; }
  #new-activity-button { font-size: 0; width: 38px; padding: 0; }
  #new-activity-button .plus { font-size: 20px; }
  .filter-bar { padding-inline: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .modal-form { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
