*{box-sizing:border-box}
:root{
  --text:#11131D;--navy:#13254E;--muted:#737887;--line:#E5E7EE;--soft-line:#E3E5EC;
  --violet:#6842E8;--blue:#4165C7;--blue-deep:#152D67;--blue-mid:#3156AC;--blue-light:#9CC9F0;
  --pink:#F8B9D7;--pink-light:#FFD5E8;--pink-card:#FFE7F2;--pink-card-2:#FFF0F7;--pink-hot:#F35CA8;
  --white:#FFFFFF;--hour:120px;--label:145px;--row:250px
}
html,body{min-width:0}
body{margin:0;background:#FFFFFF;color:var(--text);font:16px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.app-shell{width:100%;max-width:none;margin:0 auto;padding:44px 28px 56px}
.topbar{display:grid;grid-template-columns:220px 1fr 220px;align-items:center;gap:24px;margin-bottom:28px}
.topbar h1{margin:0;font-size:26px;letter-spacing:-.02em;color:#11131D}.topbar p{margin:6px 0 0;color:#737887}
.week-nav{justify-self:center;display:flex;align-items:center;border:1px solid #E5E7EE;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(30,32,50,.03)}
.week-label{padding:14px 18px;min-width:240px;text-align:center;font-weight:700;color:#11131D}.icon-btn,.close-btn{border:0;background:transparent;cursor:pointer;color:#2f3340}.icon-btn{font-size:28px;width:46px;height:50px}
.edit-btn{justify-self:end;border:0;border-radius:13px;background:#6842E8;color:#fff;font-weight:700;font-size:16px;padding:14px 22px;cursor:pointer;box-shadow:0 9px 22px rgba(104,66,232,.25),0 2px 7px rgba(104,66,232,.16)}
.day-tabs{display:flex;justify-content:center;margin:0 auto 26px;width:max-content;max-width:100%;overflow:auto;border:1px solid #E5E7EE;border-radius:13px;background:#fff}
.day-tab{min-width:88px;padding:14px 18px;border:0;border-right:1px solid #E5E7EE;background:#fff;color:#404451;cursor:pointer;font-size:15px}.day-tab:last-child{border-right:0}.day-tab.active{color:#6842E8;background:#F7F4FF;font-weight:800}
.legend-panel{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:0 4px 16px;color:#303441}.legend-panel>div{display:flex;align-items:center;gap:9px}.dot{width:12px;height:12px;border-radius:50%;display:inline-block}.bruh-dot{background:#6DD6F0}.iennie-dot{background:#F36BB0}.legend-muted{color:#737887;font-size:14px}.week-kind{margin-left:auto;background:#F8F8FB;border:1px solid #E5E7EE;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800}
.legend-user{font-weight:750}.campus-stats{font-size:12px;font-weight:800;color:#737887;background:#F8F8FB;border:1px solid #E5E7EE;border-radius:999px;padding:4px 8px;white-space:nowrap}

/* Scrapbook schedule */
.schedule-card{width:100%;border:1px solid #E3E5EC;border-radius:15px;overflow:hidden;background:#fff;box-shadow:none}
.schedule-scroll{width:100%;overflow-x:auto;overflow-y:hidden;background:#fff}
.schedule{position:relative;width:100%;min-width:100%;background:#fff;isolation:isolate}
.time-header{position:sticky;top:0;z-index:10;height:76px;margin-left:var(--label);border-bottom:0;background-color:#4165C7;background-image:linear-gradient(rgba(111,140,219,.23) 1px,transparent 1px),linear-gradient(90deg,rgba(111,140,219,.23) 1px,transparent 1px);background-size:18px 18px}
.time-header::before{content:"✦  study day  ↗";position:absolute;left:calc(-1 * var(--label));top:0;width:var(--label);height:76px;padding:24px 16px;color:rgba(255,255,255,.87);font:700 13px/1.2 "Comic Sans MS","Bradley Hand",cursive;letter-spacing:.02em;background-color:#4165C7;background-image:linear-gradient(rgba(111,140,219,.23) 1px,transparent 1px),linear-gradient(90deg,rgba(111,140,219,.23) 1px,transparent 1px);background-size:18px 18px}
.time-header .tick{position:absolute;top:0;bottom:0;border-left:1px solid rgba(244,247,255,.06)}
.time-header .tick span{position:absolute;top:20px;left:7px;color:#F4F7FF;font-weight:750;font-size:13px;white-space:nowrap;background:rgba(49,86,172,.78);border:1px solid rgba(102,132,208,.92);border-radius:18px;padding:7px 10px;box-shadow:0 2px 7px rgba(19,37,78,.10)}
.users-area{position:relative;background:#fff}
.user-row{height:var(--row);position:relative;border:0;overflow:hidden}
.user-row[data-user="bruh"]{background-color:#4165C7;background-image:radial-gradient(circle at 82% 25%,rgba(36,71,151,.48),transparent 28%),linear-gradient(rgba(111,140,219,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(111,140,219,.22) 1px,transparent 1px);background-size:auto,18px 18px,18px 18px}
.user-row[data-user="iennie"]{background-color:#F8B9D7;background-image:linear-gradient(45deg,rgba(255,255,255,.26) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.26) 75%),linear-gradient(45deg,rgba(255,213,232,.35) 25%,transparent 25%,transparent 75%,rgba(255,213,232,.35) 75%);background-position:0 0,10px 10px;background-size:20px 20px}
.user-row[data-user="iennie"]::before{content:"";position:absolute;left:0;right:0;top:-10px;height:20px;z-index:7;pointer-events:none;background:radial-gradient(circle at 10px 0,#FFFFFF 10px,transparent 10.5px) 0 0/20px 20px repeat-x,radial-gradient(circle at 10px 20px,#FFD5E8 10px,transparent 10.5px) 10px -10px/20px 20px repeat-x;filter:drop-shadow(0 1px 0 rgba(243,92,168,.12))}
.user-row[data-user="iennie"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:13px;z-index:7;pointer-events:none;background:radial-gradient(circle at 8px 0,#FFF9FC 8px,transparent 8.5px) 0 0/16px 16px repeat-x;opacity:.9}
.user-label{position:sticky;left:0;z-index:8;width:var(--label);height:100%;display:flex;align-items:center;padding:0 20px;background:transparent;border-right:0;font-size:18px;font-weight:850;color:#11131D;text-shadow:0 1px rgba(255,255,255,.12)}
.user-row[data-user="bruh"] .user-label{color:#F7FAFF}
.user-label .dot{box-shadow:0 0 0 4px rgba(255,255,255,.18)}
.grid-layer{position:absolute;left:var(--label);right:0;top:0;bottom:0;background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour) - 1px),rgba(255,255,255,.055) calc(var(--hour) - 1px),rgba(255,255,255,.055) var(--hour));z-index:0}
.user-row[data-user="iennie"] .grid-layer{background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour) - 1px),rgba(255,255,255,.09) calc(var(--hour) - 1px),rgba(255,255,255,.09) var(--hour))}

.event{position:absolute;top:34px;height:180px;border-radius:11px;padding:15px 14px;overflow:hidden;border:0;z-index:4;box-shadow:0 3px 10px rgba(20,40,90,.12);color:#13254E;background:#F8FAFF}
.event strong{display:block;font-size:14px;margin-bottom:8px;line-height:1.25}.event .event-time{font-weight:800;margin-bottom:6px}.event .event-meta{font-size:12px;color:#526079}
.event::before{content:"";position:absolute;top:-4px;right:12px;width:38px;height:12px;border-radius:2px;background:rgba(217,228,244,.78);transform:rotate(13deg);box-shadow:0 1px 2px rgba(19,37,78,.08)}
.event:nth-of-type(2n)::before{left:13px;right:auto;transform:rotate(-11deg);background:rgba(236,244,255,.72)}
.user-row[data-user="bruh"] .event.bruh{background:#152D67;color:#FFFFFF;border:1px solid rgba(216,228,255,.78);box-shadow:0 4px 13px rgba(12,31,73,.20)}
.user-row[data-user="bruh"] .event.bruh .event-meta{color:#D8E4FF}.user-row[data-user="bruh"] .event.bruh::before{background:rgba(233,242,255,.68)}
.user-row[data-user="bruh"] .event.work,.user-row[data-user="bruh"] .event.commute,.user-row[data-user="bruh"] .event.transfer,.user-row[data-user="bruh"] .event.wake{background:#EEF5FF;color:#13254E;border:1px solid rgba(216,228,255,.76)}
.user-row[data-user="bruh"] .event.transfer{background:#F8FAFF}
.user-row[data-user="bruh"] .event.wake{background:#F8FAFF}
.user-row[data-user="iennie"] .event,.user-row[data-user="iennie"] .event.iennie,.user-row[data-user="iennie"] .event.work,.user-row[data-user="iennie"] .event.commute,.user-row[data-user="iennie"] .event.transfer,.user-row[data-user="iennie"] .event.wake{background:#FFE7F2;color:#13254E;border:0;box-shadow:0 3px 10px rgba(166,47,104,.10)}
.user-row[data-user="iennie"] .event:nth-of-type(3n){background:#FFF0F7}.user-row[data-user="iennie"] .event:nth-of-type(4n){background:#FBE5EF}.user-row[data-user="iennie"] .event .event-meta{color:#6D4260}.user-row[data-user="iennie"] .event::before{background:rgba(255,255,255,.68)}
.event.conflict{border:2px solid #C8326F!important;background-image:repeating-linear-gradient(135deg,rgba(243,92,168,.20) 0,rgba(243,92,168,.20) 8px,transparent 8px,transparent 16px)!important}
.conflict-badge{position:absolute;right:8px;bottom:8px;background:#B82060;color:#fff;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900;letter-spacing:.04em;box-shadow:0 2px 5px rgba(132,18,70,.18)}

/* Common free time becomes two paper-page highlight areas without changing geometry. */
.common-slot{position:absolute;z-index:2;pointer-events:none;border-radius:12px}
.common-slot.bruh-free{top:12px;height:calc(var(--row) - 24px);background:rgba(156,201,240,.68);border:1px solid #3E7BC9;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.common-slot.iennie-free{top:calc(var(--row) + 12px);height:calc(var(--row) - 24px);background-color:rgba(255,217,234,.72);border:1px solid rgba(243,92,168,.33);background-image:linear-gradient(45deg,rgba(255,255,255,.22) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.22) 75%),linear-gradient(45deg,rgba(248,185,215,.22) 25%,transparent 25%,transparent 75%,rgba(248,185,215,.22) 75%);background-position:0 0,8px 8px;background-size:16px 16px}
.common-slot .common-copy{position:sticky;left:calc(var(--label) + 28px);width:min(330px,calc(100% - 36px));margin:70px 18px 0;padding:16px 18px;border-radius:11px;background:#F8FAFF;box-shadow:0 5px 14px rgba(20,40,90,.12);color:#183A7A;border:1px solid rgba(227,229,236,.85)}
.common-slot .common-copy::before{content:"✦  free!  ↗";position:absolute;top:-33px;left:8px;font:700 17px/1 "Comic Sans MS","Bradley Hand",cursive;color:#183A7A;transform:rotate(-4deg)}
.common-slot .common-copy::after{content:"☆  ✦";position:absolute;right:-15px;top:-28px;font-size:21px;color:#183A7A;transform:rotate(8deg)}
.common-slot strong{display:block;margin-bottom:7px;color:#13254E}.common-slot span{color:#53627D;font-size:13px}

/* Doodles / sticker illustrations stay below event cards and only occupy empty areas. */
.decor-layer{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;pointer-events:none;overflow:hidden}
.doodle{position:absolute;font-family:"Comic Sans MS","Bradley Hand",cursive;line-height:1;user-select:none}
.bruh-decor .doodle{color:rgba(255,255,255,.88)}.iennie-decor .doodle{color:#F35CA8}
.doodle.arrow-a{left:34px;top:28px;font-size:34px;transform:rotate(-14deg)}.doodle.stars-a{left:25%;top:14px;font-size:23px;letter-spacing:8px}.doodle.note-a{right:22%;bottom:20px;font-size:17px;transform:rotate(-5deg)}.doodle.heart-a{right:24px;top:24px;font-size:51px;color:#FF8FC4;filter:drop-shadow(0 0 0 #fff)}
.doodle.bow-a{left:51%;bottom:10px;font-size:42px}.doodle.hearts-b{left:18%;top:18px;font-size:25px;letter-spacing:6px}.doodle.sparkles-b{right:28%;top:20px;font-size:24px;letter-spacing:7px}.doodle.note-b{right:13%;bottom:19px;font-size:16px;transform:rotate(4deg)}
.sticker-svg{position:absolute;filter:drop-shadow(0 4px 5px rgba(19,37,78,.14));overflow:visible}.sticker-svg *{vector-effect:non-scaling-stroke}.computer-sticker{right:12%;bottom:18px;width:112px;height:84px}.bunny-sticker{right:3%;bottom:8px;width:82px;height:100px}.polaroid-sticker{left:10px;bottom:15px;width:82px;height:92px;transform:rotate(-7deg)}.flower-sticker{width:78px;height:78px}.flower-left{left:-30px;bottom:24px}.flower-right{right:-31px;top:32px}.flower-pink-left{left:-28px;top:55px}.flower-pink-right{right:-30px;bottom:34px}

.result-card{margin-top:20px;border:1px solid #E0E3EA;background:#FFFFFF;border-radius:13px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:0 4px 16px rgba(20,25,45,.035)}
.result-kicker{display:block;color:#656B78;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;margin-bottom:5px}.result-kicker::before{content:"★";color:#FFD84D;margin-right:7px}.result-card strong{font-size:24px;color:#11131D}.result-card p{margin:0;color:#656B78;text-align:right}.source-note{color:#737887;font-size:13px;margin:14px 4px 0}

/* Editor remains clean and functional. */
.settings-dialog{width:min(760px,calc(100% - 28px));max-height:88vh;border:0;border-radius:18px;padding:0;box-shadow:0 24px 90px rgba(24,25,38,.24)}.settings-dialog::backdrop{background:rgba(27,27,37,.28);backdrop-filter:blur(2px)}.dialog-body{padding:24px;background:#fff}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.dialog-head h2{margin:0;font-size:24px}.dialog-head p{margin:5px 0 0;color:#737887}.close-btn{font-size:28px}.settings-dialog label{display:grid;gap:7px;margin:12px 0;font-weight:700}.settings-dialog input,.settings-dialog select{width:100%;padding:11px 12px;border:1px solid #dfe1e6;border-radius:10px;font:inherit;background:#fff}.add-event-form{border:1px solid #E5E7EE;border-radius:14px;padding:16px;margin-top:16px}.add-event-form h3,.week-events-head h3{margin:0 0 10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.save-btn{width:100%;border:0;border-radius:11px;background:#6842E8;color:#fff;padding:13px 18px;font-weight:800;font-size:16px;cursor:pointer;margin-top:8px}.week-events-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 10px}.secondary-btn,.delete-event{border:1px solid #dfe1e6;background:#fff;border-radius:9px;padding:8px 11px;cursor:pointer;font-weight:700}.delete-event{color:#b93349;border-color:#efc7cf}.week-events-list{display:grid;gap:8px;max-height:280px;overflow:auto;padding-right:4px}.editor-event{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #E5E7EE;border-radius:11px;padding:11px 12px}.editor-event strong,.editor-event span{display:block}.editor-event span{color:#737887;font-size:13px;margin-top:3px}.empty-list{color:#737887}

@media(max-width:850px){:root{--label:112px}.app-shell{padding:24px 12px}.topbar{grid-template-columns:1fr auto}.week-nav{grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:center}.week-label{min-width:180px}.edit-btn{grid-column:2}.legend-panel{gap:12px}.week-kind{margin-left:0}.result-card{align-items:flex-start;flex-direction:column}.result-card p{text-align:left}.day-tabs{justify-content:flex-start;width:100%}.day-tab{min-width:74px;padding:12px 10px}.user-label{padding:0 12px;font-size:15px}.form-grid{grid-template-columns:1fr}.editor-event{align-items:flex-start;flex-direction:column}.event{padding:12px 10px}.computer-sticker{right:5%;width:90px}.doodle.note-a,.doodle.note-b{display:none}}

/* --- refinements: cleaner bruh row + study grouping --- */
.time-header::before{content:"";padding:0}
.time-header .tick{border-left:1px solid rgba(255,255,255,.28)}
.user-row[data-user="bruh"] .grid-layer{
  background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour) - 1px),rgba(255,255,255,.17) calc(var(--hour) - 1px),rgba(255,255,255,.17) var(--hour));
}
/* bruh intentionally has no doodles/stickers after the requested cleanup */
.bruh-decor{display:none!important}

.study-band{
  position:absolute;
  top:22px;
  height:204px;
  z-index:2;
  border-radius:14px;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
}
.user-row[data-user="bruh"] .study-band{
  background:rgba(180,207,255,.17);
  border:1px solid rgba(226,238,255,.48);
}
.user-row[data-user="iennie"] .study-band{
  background:rgba(255,247,252,.32);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:inset 0 0 0 1px rgba(243,92,168,.09);
}
.event{z-index:4}

.event.compact-commute{
  padding:4px 2px!important;
  min-width:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.event.compact-commute::before{display:none}
.compact-trip-time{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.4px;
  white-space:nowrap;
}

/* Phone layout only: the desktop timeline above is untouched. */
@media (max-width: 600px){
  :root{--label:0px;--mobile-time-gutter:58px}
  .app-shell{padding:18px 10px 36px}
  .topbar{gap:12px;margin-bottom:18px}.topbar h1{font-size:22px}.topbar p{font-size:13px}
  .week-nav{width:100%}.week-label{min-width:0;flex:1;padding:12px 8px;font-size:14px}
  .edit-btn{padding:11px 14px;font-size:14px}.day-tabs{margin-bottom:16px}.legend-panel{font-size:14px}
  .schedule-card{overflow:hidden}
  .schedule-scroll{overflow:visible}
  .schedule{width:100%!important;min-width:0!important}
  .time-header{display:none}
  .users-area{display:block;background:#fff}
  .user-row{height:calc(58px + var(--mobile-timeline-height, 1020px));overflow:hidden;padding-top:58px}
  .user-row + .user-row{margin-top:14px}
  .user-label{position:absolute;left:0;top:0;width:100%;height:58px;padding:0 18px;z-index:9;font-size:18px;background:rgba(255,255,255,.16);backdrop-filter:blur(2px)}
  .user-row[data-user="iennie"] .user-label{background:rgba(255,255,255,.28)}
  .grid-layer{left:var(--mobile-time-gutter);right:0;top:58px;bottom:0;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,rgba(255,255,255,.25) 59px,rgba(255,255,255,.25) 60px)!important}
  .grid-layer::before{content:"06:00\A07:00\A08:00\A09:00\A10:00\A11:00\A12:00\A13:00\A14:00\A15:00\A16:00\A17:00\A18:00\A19:00\A20:00\A21:00\A22:00\A23:00";white-space:pre;position:absolute;left:calc(-1 * var(--mobile-time-gutter));top:-7px;width:54px;color:rgba(255,255,255,.92);font-size:11px;font-weight:800;line-height:60px;text-align:center;letter-spacing:-.2px}
  .user-row[data-user="iennie"] .grid-layer::before{color:#13254E}
  .event{left:calc(var(--mobile-time-gutter) + 8px)!important;right:10px;width:auto!important;top:calc(58px + var(--mobile-top))!important;height:max(42px,var(--mobile-height))!important;min-height:42px;padding:9px 12px;border-radius:10px;overflow:hidden}
  .event strong{font-size:12px;margin-bottom:3px}.event .event-time{font-size:11px;margin-bottom:2px}.event .event-meta{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .event.compact-commute{left:calc(var(--mobile-time-gutter) + 8px)!important;right:10px;width:auto!important;min-height:24px!important;height:max(24px,var(--mobile-height))!important}
  .compact-trip-time{font-size:16px}
  .study-band{left:calc(var(--mobile-time-gutter) + 4px)!important;right:6px;width:auto!important;top:calc(58px + var(--mobile-top) - 5px)!important;height:calc(var(--mobile-height) + 10px)!important}
  .common-slot{left:calc(var(--mobile-time-gutter) + 4px)!important;right:6px;width:auto!important;top:calc(58px + var(--mobile-top))!important;height:var(--mobile-height)!important}
  .common-slot.bruh-free,.common-slot.iennie-free{top:calc(58px + var(--mobile-top))!important}
  .common-slot .common-copy{position:absolute;left:8px;right:8px;top:8px;width:auto;margin:0;padding:10px 12px;font-size:12px}
  .common-slot .common-copy::before,.common-slot .common-copy::after{display:none}
  .decor-layer{display:none}
  .result-card{margin-top:14px;padding:15px 16px}.result-card strong{font-size:19px}
}

/* Mobile v2: two vertical timelines side by side. Desktop rules remain unchanged. */
@media (max-width: 600px){
  :root{--mobile-time-gutter:44px}

  .topbar{grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .topbar>div:first-child{min-width:0}
  .edit-btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:5px}
  .icon-btn{display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;font-weight:700;line-height:1;color:#2f3340}

  .schedule-card{border-radius:13px;overflow:hidden}
  .schedule-scroll{overflow:hidden}
  .schedule{width:100%!important;min-width:0!important}
  .users-area{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:start;
    position:relative;
    background:#fff;
  }
  .user-row{
    width:100%;
    min-width:0;
    height:calc(58px + var(--mobile-timeline-height, 1020px));
    margin:0!important;
    padding-top:58px;
    overflow:hidden;
  }
  .user-row + .user-row{margin-top:0!important}
  .user-row[data-user="bruh"]{border-right:2px solid rgba(255,255,255,.72)}
  .user-row[data-user="iennie"]::before{top:0;height:10px;opacity:.55}

  .user-label{
    position:absolute;
    left:0;top:0;
    width:100%;height:58px;
    padding:0 10px;
    display:flex;align-items:center;
    font-size:15px;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
    z-index:9;
  }
  .user-label .dot{width:10px;height:10px;min-width:10px;margin-right:7px!important;display:inline-block!important;opacity:1!important}

  /* Time labels are shown once, in the bruh column, so both schedules get more room. */
  .user-row[data-user="bruh"] .grid-layer{left:var(--mobile-time-gutter);right:0}
  .user-row[data-user="iennie"] .grid-layer{left:0;right:0}
  .user-row[data-user="iennie"] .grid-layer::before{display:none}
  .grid-layer::before{font-size:9px;width:42px;line-height:60px;left:calc(-1 * var(--mobile-time-gutter));text-align:center}

  .event{
    right:5px!important;
    width:auto!important;
    min-width:0!important;
    padding:7px 6px;
    border-radius:9px;
    overflow:hidden;
  }
  .user-row[data-user="bruh"] .event{left:calc(var(--mobile-time-gutter) + 5px)!important}
  .user-row[data-user="iennie"] .event{left:5px!important}
  .event strong{
    display:block;
    font-size:10px;
    line-height:1.12;
    margin:0 0 3px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow-wrap:anywhere;
  }
  .event .event-time{font-size:9px;line-height:1.1;margin-bottom:2px;white-space:nowrap}
  .event .event-meta{font-size:8px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .event::before{width:22px;height:8px;right:7px}

  .event.compact-commute{right:5px!important;padding:1px!important}
  .user-row[data-user="bruh"] .event.compact-commute{left:calc(var(--mobile-time-gutter) + 5px)!important}
  .user-row[data-user="iennie"] .event.compact-commute{left:5px!important}
  .compact-trip-time{font-size:18px!important;line-height:1;font-weight:900}

  .study-band{right:3px!important;width:auto!important}
  .user-row[data-user="bruh"] .study-band{left:calc(var(--mobile-time-gutter) + 3px)!important}
  .user-row[data-user="iennie"] .study-band{left:3px!important}

  .common-slot{right:3px!important;width:auto!important}
  .common-slot.bruh-free{left:calc(var(--mobile-time-gutter) + 3px)!important}
  .common-slot.iennie-free{left:3px!important}
  .common-slot .common-copy{left:5px;right:5px;padding:7px 6px;font-size:9px;line-height:1.15}
  .common-slot .common-copy strong{font-size:9px;overflow-wrap:anywhere}

  .conflict-badge{right:4px;bottom:4px;font-size:7px;padding:2px 4px;max-width:calc(100% - 8px);overflow:hidden;text-overflow:ellipsis}
  .decor-layer{display:none!important}
}

@media (max-width: 390px){
  .app-shell{padding-left:6px;padding-right:6px}
  :root{--mobile-time-gutter:38px}
  .user-label{font-size:14px;padding:0 7px}
  .grid-layer::before{width:36px;font-size:8px}
  .event strong{font-size:9px;-webkit-line-clamp:3}
  .event .event-time{font-size:8px}
  .event .event-meta{font-size:7px}
}

/* Mobile v3 — clean two-column timeline. Desktop layout is intentionally untouched. */
@media (max-width: 600px){
  :root{--mobile-time-gutter:30px}
  html,body{width:100%;overflow-x:hidden}
  .app-shell{width:100%;padding:14px 4px 30px}
  .schedule-card{width:100%;margin:0;border-radius:12px}
  .schedule-scroll{width:100%;overflow:hidden}
  .schedule{position:relative;width:100%!important;min-width:0!important}

  /* Use the real hour ticks created by JS as a vertical ruler.
     This replaces the old pseudo-element string that could collapse into garbage text. */
  .time-header{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:58px!important;
    margin:0!important;
    width:var(--mobile-time-gutter)!important;
    height:var(--mobile-timeline-height, 1020px)!important;
    z-index:20!important;
    background:transparent!important;
    border:0!important;
    pointer-events:none;
    overflow:visible!important;
  }
  .time-header::before{display:none!important}
  .time-header .tick{
    position:absolute!important;
    left:0!important;
    top:var(--mobile-top)!important;
    width:100%!important;
    height:1px!important;
    bottom:auto!important;
    border:0!important;
  }
  .time-header .tick span{
    position:absolute!important;
    left:1px!important;
    top:-7px!important;
    width:28px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:rgba(255,255,255,.96)!important;
    font-size:7px!important;
    line-height:14px!important;
    font-weight:800!important;
    letter-spacing:-.35px!important;
    text-align:center!important;
    white-space:nowrap!important;
  }

  .users-area{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
  .user-row{height:calc(58px + var(--mobile-timeline-height, 1020px))!important;padding-top:58px!important;min-width:0!important}
  .user-label{height:58px!important;padding:0 9px!important;font-size:16px!important;font-weight:850!important}
  .user-label .dot{width:11px!important;height:11px!important;min-width:11px!important;margin-right:7px!important}

  /* Remove the broken text ruler completely. */
  .grid-layer::before{content:none!important;display:none!important}
  .user-row[data-user="bruh"] .grid-layer{left:var(--mobile-time-gutter)!important;right:0!important}
  .user-row[data-user="iennie"] .grid-layer{left:0!important;right:0!important}

  /* Give cards practically all available column width. */
  .event{
    right:4px!important;
    width:auto!important;
    min-width:0!important;
    min-height:46px!important;
    padding:8px 7px!important;
    border-radius:10px!important;
  }
  .user-row[data-user="bruh"] .event{left:calc(var(--mobile-time-gutter) + 3px)!important}
  .user-row[data-user="iennie"] .event{left:4px!important}
  .event strong{
    font-size:11px!important;
    line-height:1.14!important;
    margin:0 0 4px!important;
    -webkit-line-clamp:4!important;
  }
  .event .event-time{font-size:10px!important;line-height:1.12!important;margin-bottom:3px!important}
  .event .event-meta{font-size:9px!important;line-height:1.12!important}

  .event.compact-commute{
    min-height:0!important;
    height:var(--mobile-height)!important;
    padding:0!important;
    border-radius:5px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .user-row[data-user="bruh"] .event.compact-commute{left:calc(var(--mobile-time-gutter) + 3px)!important}
  .user-row[data-user="iennie"] .event.compact-commute{left:4px!important}
  .compact-trip-time{font-size:12px!important;line-height:1!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;height:100%!important}
  .legend-panel{gap:8px 10px!important;padding-left:2px!important;padding-right:2px!important}
  .legend-user{gap:5px!important}.campus-stats{font-size:10px!important;padding:3px 6px!important}.week-kind{margin-left:auto!important;font-size:11px!important;padding:5px 8px!important}

  .study-band{right:3px!important}
  .user-row[data-user="bruh"] .study-band{left:calc(var(--mobile-time-gutter) + 2px)!important}
  .user-row[data-user="iennie"] .study-band{left:2px!important}
  .common-slot{right:3px!important}
  .common-slot.bruh-free{left:calc(var(--mobile-time-gutter) + 2px)!important}
  .common-slot.iennie-free{left:2px!important}

  /* Keep decorative tape from eating space on narrow cards. */
  .event::before{width:18px!important;height:6px!important;top:-2px!important}
}

@media (max-width: 390px){
  :root{--mobile-time-gutter:26px}
  .app-shell{padding-left:2px;padding-right:2px}
  .time-header .tick span{width:24px!important;font-size:6.5px!important;letter-spacing:-.45px!important}
  .user-label{font-size:15px!important;padding:0 7px!important}
  .event{padding:7px 5px!important}
  .event strong{font-size:10px!important}
  .event .event-time{font-size:9px!important}
  .event .event-meta{font-size:8px!important}
  .compact-trip-time{font-size:10px!important}
  .campus-stats{font-size:9px!important;padding:2px 5px!important}
}

.sync-status{margin-left:auto;font-size:12px;font-weight:700;color:#737887;white-space:nowrap}.sync-status[data-tone="ok"]{color:#4d7a61}.sync-status[data-tone="busy"]{color:#6842E8}.sync-status[data-tone="error"]{color:#b93349}@media(max-width:600px){.sync-status{width:100%;margin-left:0;margin-top:4px;font-size:11px}}

/* --- schedule logic refinements --- */
.compact-trip-time{flex-direction:column;gap:2px}
.compact-trip-time strong{font-size:18px;line-height:.9;margin:0!important}
.compact-trip-time span{font-size:9px;line-height:1;font-weight:800;text-transform:lowercase;letter-spacing:0}
.event.time-flag{
  width:auto!important;min-width:max-content!important;height:auto!important;min-height:0!important;
  padding:4px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 2px 7px rgba(19,37,78,.12)!important;
  overflow:visible!important;z-index:6!important;
}
.event.time-flag::before{display:none!important}
.event.time-flag .flag-label{font-size:10px;font-weight:850;line-height:1;white-space:nowrap}
.user-row[data-user="bruh"] .event.time-flag{color:#13254E!important;background:#F8FAFF!important}
.user-row[data-user="iennie"] .event.time-flag{color:#9B376D!important;background:#FFF7FB!important}
.event.preparation{background:#F8FAFF!important;color:#13254E!important}
.user-row[data-user="iennie"] .event.preparation{background:#FFF0F7!important}

@media(max-width:600px){
  .compact-trip-time{gap:0!important}
  .compact-trip-time strong{font-size:11px!important;line-height:.8!important}
  .compact-trip-time span{font-size:6px!important;line-height:.8!important}
  .event.time-flag{right:auto!important;width:max-content!important;max-width:calc(100% - 8px)!important;padding:3px 6px!important;min-height:0!important;height:auto!important;transform:translateY(-50%)}
  .event.time-flag .flag-label{font-size:8px!important}
}
